Skip to main content

Questions tagged [dir]

for questions related to the `dir` command, which lists directory contents in MS-DOS and Windows-based operating systems

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 ...
chris's user avatar
  • 9,425
61 votes
9 answers
135k views

How to view all the Symbolic links, junction points, hard links in a Folder using dir?

The command dir /a displays a list of all the files and folders in a given location. But it displays the type <JUNCTION> for Junction Points as well as Symbolic Links to Folders. Is there any ...
Dhiwakar Ravikumar's user avatar
27 votes
1 answer
4k views

Non-hidden directory doesn't show in Explorer, but the program that made it can access it

I'm using IMAPSize to backup my mailboxes. The process just dumps the contents of your mailbox into .eml files on your disk. Anyway, the first mailbox I backed up shows up as I expect. However, the ...
Xophmeister's user avatar
62 votes
5 answers
11k views

Why does `dir *.*` give me all files and folders?

When I run dir *.* it produces unexpected results. Even files and folders without any dot in their names are listed. For example C:\>dir *.* Volume in drive C is System Volume Serial Number is ...
phuclv's user avatar
  • 28.3k
97 votes
2 answers
11k views

Why is DNS apparently involved in issuing "dir" on Windows 10?

For complicated reasons, I have been forced to make an identical copy of cmd.exe and rename it to cmd-2.exe, which I put as a shortcut on the Taskbar to have them "grouped" in different taskbar groups....
Khalid's user avatar
  • 739
22 votes
4 answers
87k views

How do I recursively list filenames (only) in DOS/Windows? [duplicate]

Possible Duplicate: Get bare file names recursively in command prompt I would like to recursively list all files in a directory, showing filenames only (without extensions and without the full ...
David B's user avatar
  • 2,554
1 vote
2 answers
183 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 [\\...
andio's user avatar
  • 293
22 votes
1 answer
77k views

How to change CMD start directory [duplicate]

I want to change the CMD startup directory when I launch it via Start+R Currently, it points to my users folder. I need it to point to C:\Windows\System32\ When I navigate using explorer to C:\Windows\...
Lucas BS's user avatar
  • 482
15 votes
5 answers
131k views

windows command line dir command: to display only the file name, in 8.3 format?

I know that "dir /w" or "dir /b" shows only the file name. While "dir /x" or "dir /X" shows the 8.3 format, but together shows all other information like long format file names, dates and size. is it ...
athos's user avatar
  • 2,301
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. ...
nonopolarity's user avatar
  • 9,696
5 votes
8 answers
404 views

DIR filenames that contain extensions

I was just trying to check a dump-directory for any ZIP programs like PeaZip, NanoZip, etc. and ran into an odd problem that I have seen only a few times before. I used the following command to list ...
Synetech's user avatar
  • 69k
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 ...
Moe Sisko's user avatar
  • 143
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\...
siliconpi's user avatar
  • 2,777
2 votes
3 answers
12k views

Displaying file names with a certain number of characters in command line

I need to list all text files on the C drive whose names are seven characters long. I tried the following command DIR ???????.txt However, this command displayed files with seven characters and less....
batsta13's user avatar
  • 123
2 votes
3 answers
305 views

Obtaining a list of files from a specific directory

Many thanks for the help but... Using Windows 7 x64 running command from a batch file in a particular folder I use many paq8/paq9 command line compressors to back up my files. Of these, many can't ...
Steve Robathan's user avatar

15 30 50 per page