If I run this script on files on a hard drive, either internal or external USB, it works perfectly. Each files is processed once. If I run the script on files on a flash drive, each file is processed twice. It's not that each file comes up twice, the entire loop repeats twice.
More instances of GSAR in the loop will cause the loop to repeat even more times.
I have tried several different flash drives, formatted as both FAT32 and exFAT, and the results were the same.
It works fine with other commands, but not with GSAR. Does anyone have any idea why this happens?
I'm using GSAR 1.21 from here;
Code: Select all
for %%F in (*.txt) do (
gsar -stest -rtext -o %%F >nul