Skip to main content

All Questions

Tagged with
9 votes
1 answer
220 views

Understanding why the DIR command behaves this way

Why does: dir "test.txt " dir test.txt. dir "test.txt . . ." all lists test.txt with no error on Windows prompt? Are there any other suffix that are ignored by Windows? (please note that I ...
Guillaume's user avatar
  • 193
1 vote
1 answer
591 views

Dir piped into Set

Im trying to make a program that selects a file name, then pipes it into a variable. My Attempt: Dir /B "C:\Program Files (x86)\ServerMaster\Internals\Versions\Van1" | (set /p myVar= & set myVar)...
Brennan Olson's user avatar
5 votes
4 answers
10k views

dir folders at a certain folder depth in a batch file

I want, with a batch file, to be able to search and display the files in a bunch of folders called "error" located in a bunch of different places. The error folder is always at the same folder depth ...
Tomas's user avatar
  • 73