Skip to main content

All Questions

1 vote
0 answers
1k views

How to get files ordered by name with `dir`?

This used to be really easy in the old OS's. dir /o:n >> list.txt for %a in (`list.txt`) do copy %a ..\ordered And voila, there was the list of files in the other folder, created in the sorted ...
Alex's user avatar
  • 208
1 vote
0 answers
343 views

Different date stamps Explorer vs. from command line - Win7

I'm trying to create a simple batch file to match up 2 directories of files to resolve some issues between the 2 sets. This would be very easy to do if I could match them between directories based ...
Gene T's user avatar
  • 11
0 votes
0 answers
681 views

How can I list all files recursively that have the compressed attribute set?

I started a decompress operation using compact /U /S /I /Q > compact-report.txt on a large dir (120GB+, ~950M+ files) and it has been going on for about 24 hours now. Most files seem decompressed, ...
Abel's user avatar
  • 1,483
3 votes
1 answer
10k views

CMD Using DIR to order directories by name

I'm using the following command to list files including those in sub-directories ordered by name. dir /b/s/on The files are correctly ordered within their given directories but the directories are ...
Paul Fleming's user avatar
1 vote
1 answer
695 views

List files in CMD with DIR

I'm trying to use DIR to list all files in the current directory and sub directories ordered alphabetically. I only care about the filepath and name. I don't want the size, counts, etc. Here's what I ...
Paul Fleming's user avatar
2 votes
1 answer
196 views

Why does "dir *.*~" list files in a way different to what is expected?

In my directory I have the files files x.dll x.lib x.pdb x.exp x.plugin When I issue the command dir \*.*~ it should say 'File not found' as it does at my friend's laptop. But on my machine it ...
rezna's user avatar
  • 201
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 ...
Johnydep's user avatar
  • 1,105
22 votes
3 answers
121k views

List only files of a particular extension with the DIR command

On Windows, we can see directory content using the DIR command. I want to know, how can one see the list of only those files which have particular extension, e.g I want to see list of all .txt ...
Johnydep's user avatar
  • 1,105
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?
Jader Dias's user avatar
  • 16.1k