Windows 7 Batch Script 'For' Command Error/Bug

后端 未结 1 429
旧时难觅i
旧时难觅i 2020-12-21 04:41

There seems to be a bug with the Windows 7 batch file \'for\' command. This command can walk through a source directory and return one filename at a time. But I found that

相关标签:
1条回答
  • 2020-12-21 05:13

    So far I can only suggest replacing the FOR /R loop with FOR /F that uses the output of DIR /S:

    FOR /F "delims=" %%s IN ('DIR %1 /S /B') DO CALL :do1file %%s
    …
    
    0 讨论(0)
提交回复
热议问题