- Jan
- 16
- 0
Hello All!
TCC 17.00.70 Windows 7 [Version 6.1.7601]
The number of files and dirs are multiplied when using multiple wildcards.
You can see this by running command:
Each file and dir is displayed twice. It is clear.
But there is also a not correct sorting for existing files "a*.*" in for /o:-d (a*;*) statement.
А result that I got to watch in the screenshot.
/wnr, Alexander
TCC 17.00.70 Windows 7 [Version 6.1.7601]
The number of files and dirs are multiplied when using multiple wildcards.
You can see this by running command:
Code:
dir *;*
Each file and dir is displayed twice. It is clear.
But there is also a not correct sorting for existing files "a*.*" in for /o:-d (a*;*) statement.
Code:
@echo off
*md !
*cd !
echos>1
echos>2
echo [1] FOR: output descending
for /o:-d /a:-d %i in ([12]*.*;[12]*) echo %i
echo [2] FOR: output ascending
for /o:d /a:-d %i in ([12]*.*;[12]*) echo %i
echo [3] DIR: output descending
dir /km /o:-d /a:-d [12]*.*;[12]*
А result that I got to watch in the screenshot.
/wnr, Alexander
Attachments
Last edited: