Skip to main content

All Questions

Tagged with
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.4k
1 vote
2 answers
188 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
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,311
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,706
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
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