我有一个文本文件的text.txt读取(为简单起见) this is line one
this is line two
this is line three
再次为简单起见,我只是想设置的第一个字符中的每一行以“X”,所以我期望的结果将 xhis is line one
xhis is line two
xhis is line three
所以,我打开text.txt文件,并试
我的代码块: @ECHO OFF
SET "SRCFOLDER=C:\Users\MyUserName\Desktop\PhotoTests"
SET "TEMPCODE=Hi"
ECHO %TEMPCODE%
ECHO.
FOR /F "tokens=*" %%G IN ('DIR /B %SRCFOLDER%') DO (
ECHO %%G
CALL tool