Skip to main content

All Questions

Tagged with
1 vote
3 answers
6k views

Windows command dir lists files with absolute path, relative path required

I would like to list all filesnames of all files with a specific extension in a directory structure and write this to a file. What I have reached: dir /B /S *.ext > list.filenames This gives me a ...
1 vote
2 answers
500 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 ...
1 vote
1 answer
310 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 ...
1 vote
2 answers
188 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 [\\...
29 votes
4 answers
85k views

Excluding files of particular extension using DIR command on windows command line

if i want to see e.g. files of a particular extension only using dir listing, i can do that using the command: DIR *.txt And it shows all files with .txt extension. Now i want to know is there any ...
0 votes
1 answer
2k 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 ...
3 votes
2 answers
9k views

How to pipe Windows "dir" in ANSI codepage

This applies to both Windows XP and Windows 7. Some of my files have names with European characters, for example the German a-umlaut, also known as a-diaeresis. These are displayed correctly in ...
0 votes
0 answers
150 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 ...
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 ...
4 votes
2 answers
7k views

Default file order of "dir" command in Windows console

Just wondering how Windows determines file ordering when running a dir command (without any arguments) in a command prompt. I know you can explicitly specify an order, but just curious how ordering ...
26 votes
5 answers
63k views

Where are the standard Windows prompt commands files?

If I type dir in the command line, I guess it executes a dir.exe hidden somewhere in the system. Is there such a file? Where is it?
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]
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:\...
6 votes
2 answers
2k views

How to make AppData directory appear in File Explorer?

This post outlines how to make the AppData directory show up at the DOS prompt, but how do I make it show up in File Explorer (on Windows 7 Home Premium 64-bit)? Is there a global setting? Also, what ...
0 votes
2 answers
334 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 ...

15 30 50 per page