All Questions
7
questions with no upvoted or accepted answers
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
0
answers
409
views
Windows DIR analogue of ls -v
In linux, ls -v returns a file list in a "natural sort" order -- that is, when the name has a numerical part, it is sorted as a number:
file1.txt
file2.txt
file11.txt
Is there a way to ...
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 ...
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 ...
0
votes
0
answers
68
views
How can I easily open a command prompt in current folder with /u (set to unicode output)?
I'm trying to output directory and .txt file names using the following:
dir /b /s /a:d >> "filenames.txt"
dir /b /s *.txt >> "filenames.txt"
But some of the file and directory names use ...
0
votes
0
answers
653
views
Wildcard behavior in Windows DIR to show files in multiple subdirectories
I want to list files under both the Local and LocalLow directories under C:\Users\USERNAME\APPDATA but when I use the following command:
dir /s c:\users\me\appdata\Loca*
it only shows items ...
-2
votes
1
answer
188
views
How do I use the command line to search for multiple characters at the same time?
Write a DOS command to display all files on drive C: whose filenames are 7 characters long and begins with the letters CHAR.