If there is an error when running, remove the "@echo off" and then debug, and you will see the information on which command the system error occurred at : )
In this sentence, is there a special symbol in "dir /s /a-d /tc|sort|find "-"|find /v "Sequence"?
Think about which symbol needs to be escaped with the escape character (^)?
(If under the @echo off state, you will not see more detailed error information)
Please take a look at the help of IF /? again, and then look at your usage of this IF : )
"The ELSE clause must appear on the same line after IF..." Do you see if your usage of IF is not in line with the requirements?
......
Another:
for ……
if ....) else (.... if ...() )....
Among your so many statements, there are many parentheses, especially the last two " )) " parentheses,
When the amount of code is very large, if the code is not written in a standardized way, whether it is yourself or others, it is simply unbearable to find errors,
And it is not conducive to clarity and debugging...
Another:
You have assigned a value earlier: set c=0
Then the following...
if c equ 0 (If c is equal to 0, then...) Will this c variable be "recognized" by if?
Do you think there is a difference between if %c% equ 0 and if c equ 0?
[ Last edited by redtek on 2006-11-7 at 01:38 AM ]
Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._