win7 批处理XP运行不了
批处理如下@echooffcopy"D:\MyDocuments\MyAquanotes\MyNotes.txt""E:\新建文件夹\1.txt"set"strOne=0...
批处理如下
@echo off
copy "D:\My Documents\My Aqua notes\My Notes.txt" "E:\新建文件夹\1.txt"
set "strOne=03CT00 %date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2% "
set "strTwo= FG "
for /f "tokens=*" %%i in (1.txt) do (
>>DJ.txt echo %strOne%%%i%strTwo%
)
pause
del 1.txt
del DJ.txt
del "D:\My Documents\My Aqua notes\My Notes.txt"
这个批处理我是要在.txt中每行的前面和后面加指定字符
copy "D:\My Documents\My Aqua notes\My Notes.txt" "E:\新建文件夹\1.txt"这一步能运行,能看到一个1.txt
之后就不行了,我在WIN7 64位里能正常运行,XP就不行,哪位高手帮看下,哪里出了问题要改下 展开
@echo off
copy "D:\My Documents\My Aqua notes\My Notes.txt" "E:\新建文件夹\1.txt"
set "strOne=03CT00 %date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2% "
set "strTwo= FG "
for /f "tokens=*" %%i in (1.txt) do (
>>DJ.txt echo %strOne%%%i%strTwo%
)
pause
del 1.txt
del DJ.txt
del "D:\My Documents\My Aqua notes\My Notes.txt"
这个批处理我是要在.txt中每行的前面和后面加指定字符
copy "D:\My Documents\My Aqua notes\My Notes.txt" "E:\新建文件夹\1.txt"这一步能运行,能看到一个1.txt
之后就不行了,我在WIN7 64位里能正常运行,XP就不行,哪位高手帮看下,哪里出了问题要改下 展开
1个回答
展开全部
修改代码如下:
@echo off
copy "D:\My Documents\My Aqua notes\My Notes.txt" "E:\新建文件夹\1.txt"
set "strOne=03CT00 %date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2% "
set "strTwo= FG "
for /f "tokens=*" %%i in (E:\新建文件夹\1.txt) do (
>>DJ.txt echo %strOne%%%i%strTwo%
)
pause
del E:\新建文件夹\1.txt
del DJ.txt
del "D:\My Documents\My Aqua notes\My Notes.txt"
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询