Skip to main content

Questions tagged [dir]

for questions related to the `dir` command, which lists directory contents in MS-DOS and Windows-based operating systems

1 vote
1 answer
452 views

Powershell shortcut to list all files and folders (including hidden files) and order them by date

I'm basically looking for something like ls -alt, but in Powershell (Windows 11). Currently I'm using gci -fo | sort LastWriteTime -Descending but it's a bit of a doozy, and definitely not easy to ...
DeltaIV's user avatar
  • 437
1 vote
1 answer
275 views

How to get last modification date timestamp in "DIR /S /B" result?

In the early days of Windows (3.1, Windows 95) there was a wonderful feature, called "Find", which could be used for finding files on your computer. Some *** has decided to remove this ...
Dominique's user avatar
  • 2,281
1 vote
0 answers
55 views

How to differentiate between directories created manually and directories created by installed programs?

On my Ubuntu laptop, I want to differentiate between directories I created manually and directories created by programs that I install for coding purposes (in Python). I have searched a lot, but it ...
selmanioui's user avatar
1 vote
2 answers
183 views

Show only folder name with the link information via Windows DIR

How can I get only folder and its symbolic link information output via dir? What I want is this, where CNET and projects are symbolic links: CNET [\\192.168.1.10\CNET] elements localized projects [\\...
andio's user avatar
  • 293
1 vote
1 answer
319 views

dir /ta for displaying last-access times sometimes shows last-write times instead

On my Windows 11 22H2 system, I've verified that that last-access timestamps are maintained (fsutil behavior query disableLastAccess), and in PowerShell they can be retrieved. However, with cmd.exe's ...
mklement0's user avatar
  • 2,110
1 vote
2 answers
479 views

Powershell equivalent of "dir /a"?

Running dir /a on a given directory on one of our servers produces a list of unexpected files that look like malware: C:\Users\<username>dir /a c:\Users\Public\Downloads\ Volume in drive C has ...
kindzmarauli's user avatar
3 votes
1 answer
8k views

rmdir favorites Access is Denied

Command prompt: CD C:\Users\Example\ rmdir favorites Access is denied. How do I delete the Favorites folder via the command prompt? Yes, I want to do this. Yes, I know this folder is for Internet ...
John's user avatar
  • 2,147
0 votes
0 answers
147 views

What does [...] mean for Reparse Point Target when dir /al is executed

When I execute dir \al (Attribute: Reparse Points), I get a result that lists reparse points. The following output is easy enough to understand with columns being Date Modified, Time Modified, Dir ...
mak's user avatar
  • 121
3 votes
2 answers
7k views

What's the easiest way to map "ls" to the "dir" command in Windows? [duplicate]

I've found a few posts on command line aliases in Windows but most of them relate to aliasing long cd commands/paths that are frequently used and I can't make them work for my needs. In my case, I ...
RLH's user avatar
  • 4,495
1 vote
2 answers
7k views

Rename command in dos

this is my first question here. I just revived an old pc to play dos games. I couldn't rename a folder, but I can rename files. Any idea why? Q2: How to see the full folder name in dir command? I see ...
noname delete's user avatar
1 vote
2 answers
2k views

How to get the only the total files size from folders in windows commandline

How to get the only the total files size from folders dir in windows commandline [self answered]
Robin's user avatar
  • 23
0 votes
2 answers
3k views

List each subdirectory and the number of files within it using cmd.exe

I have several subdirectories that contain files, and I want to list each subdirectory and beside it the number of files (*.html specifically) within that subdirectory. For example, I am in "C:\...
JAT86's user avatar
  • 211
0 votes
1 answer
1k views

Can I get a list of media files duration using something like DIR?

I'm at folder Music, all right? and let's say I want to know the name and other attributes of every song in that directory, then I'll just open a terminal and go dir > musicFiles.txt but that ...
newbie's user avatar
  • 207
0 votes
2 answers
324 views

Windows cmd dir hogging CPU

I have a couple of these "Windows command Processor" (cmd) running a dir command and taking 10-15% CPU constantly, heating everything up and well hogging CPU. I also see findstr running ...
Kashyap's user avatar
  • 101
1 vote
1 answer
1k views

Default files sort order used by "dir" command / core Windows 10

tl;dr I cannot replicate sort order used by dir command in Windows 10, neither within File Explorer nor Total Commander. I have tried to change sort order based on many different columns and still ...
trejder's user avatar
  • 11.4k

15 30 50 per page
1
2 3 4 5
8