Questions tagged [dir]
for questions related to the `dir` command, which lists directory contents in MS-DOS and Windows-based operating systems
114
questions
8
votes
2
answers
8k
views
Change Default Sorting Order of 'dir' Command in Windows
By default, Windows' dir command sorts files and directories alphabetically without grouping. The result is files and directories appear interleaved with one another. Sample output:
F:\Dev Kits>...
5
votes
1
answer
2k
views
Changing the order of columns displayed with `ls`
Is it possible to change the order of displayed columns when running ls -l on *nix (or dir on Windows)?
For example, I'd like to see the date modified, then the name, then other fields (or select ...
3
votes
1
answer
117
views
list files with first char within specific range
I need to list all files that have first char within a specific range.
If I use Powershell I can do this with
gci [a-c]*
How can I do it from command line?
10
votes
1
answer
12k
views
Is it possible to pipe a list of files to RMDIR on Windows?
I am writing a batch file for the Windows command prompt to delete all directories matching a certain expression.
I am first using DIR to return a plain list of directories matching the expression. I ...
4
votes
5
answers
2k
views
WinXP dir command: 3 and 4 char extensions are the same?
I'm trying to recursively search a directory tree to find all of the .asp files using the following command:
dir *.asp /s
For some reason, this returns not only the asp files, but also the aspx ...
2
votes
2
answers
2k
views
Directory search in Windows Command Prompt shows incorrect output
I searched for the following and it gave me the exact output (folder names changed)
C:\temp>dir *950*.pdf /s
Volume in drive C has no label.
Volume Serial Number is ABCDE
Directory of C:\temp\...
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?
10
votes
4
answers
27k
views
On Windows 7, dir or tree can't show unicode characters, even starting cmd with cmd /U
On Windows 7, dir or tree can't show unicode characters, even starting cmd with cmd /U
So I would press Window Key + R to run something, and type in cmd /U so that the content might handle Unicode.
...
9
votes
5
answers
39k
views
command-line / batch file to list all the jar files?
I want to list all the jar files in subdirectories of a specified path, on a Windows computer, along with the file size & times.
dir /s gives me too much information. dir /s *.jar sort of does ...