我需要对以 unicode 命名的文件运行一个进程吗?如何使用批处理文件?
我试过了 :
dir /b %folder% > dir.lst
::cmd /u /c dir /b %folder% > dir.lst
FOR /F "delims= tokens=*" %%G IN (dir.lst) DO (
echo %%G
@set filename2=%%G
@echo %filename2%
@set filename=%pathlogs%\!filename2!
@echo %filename%
@echo %filename2%
@%binaries%\gawk -v fn=%filename% -v fn2=%filename2% -f %scripts%\AlexBank_barcode.awk %folder%\%filename2% 2> %scripts%\AlexBank_barcode.fil
@%binaries%\sort -k 1.129,1.144 -T F:\tmp %pathlogs%\%filename2%.log > %pathlogs%\%filename2%.log.tmp 2> %scripts%\%filename2%".sort.fil"
@set filename3=%filename%.log.tmp1
@%binaries%\gawk -f %scripts%\AlexBank_collect_barcode.awk %pathlogs%\%filename2%.log.tmp 2> %scripts%\AlexBank_collect_barcode.fil
@set filename3=%filename%.separate_all.log
@%binaries%\gawk -f %scripts%\AlexBank_separate_barcode.awk %pathlogs%\%filename2%.log.tmp1 2> %scripts%\AlexBank_separate_barcode.fil
@set filename3=%filename%.separate_statement_le.awk.log
@%binaries%\gawk -v fn=%filename3% -f %scripts%\AlexBank_separate_statement_le.awk %pathlogs%\%filename2%.log.tmp1 2> %scripts%\%filename2%".AlexBank_separate_statement_le.awk.fil" @set filename3=%filename%.separate_statement_gt.awk.log @%binaries%\gawk -v fn=%filename3% -f %scripts%\AlexBank_separate_statement_gt.awk %pathlogs%\%filename2%.log.tmp1 2> %scripts %\%filename2%".AlexBank_separate_statement_gt.awk.fil")