Questions tagged [dir]
for questions related to the `dir` command, which lists directory contents in MS-DOS and Windows-based operating systems
19
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 ...
1
vote
2
answers
2k
views
Dir command not working on one UNC Share
We have a process that runs in SQL Server which executes a DIR command on the local network using a UNC path to check that the files generated by another system are all there, as part of an audit ...
0
votes
2
answers
464
views
Windows Vista piping dir output into attrib command
I had a virus or something on my computer that set the attributes for all the folders in the root of my external drive to system and hidden, and created shortcuts to them. I am now trying to remove ...
-2
votes
1
answer
532
views
DOS command-line query returns too many results
Can anyone tell me why dir *.asp returns all .asp files but also all .aspx files? It seems dir ignores extensions longer than three. This is really bugging.