在無論何種原因,這是不工作(稱 '找不到文件'),批量重命名/複製/刪除不起作用?
set in=c:\myprogram\_save
cd %temp%
ren 1RO.dat "Titanic Moves 1 of 3 Rotterdam.dat"
ren 12RO.img "Titanic Moves 1 of 3 Rotterdam.img"
ren 2HA.dat "Titanic Moves 2 of 3 Hawai.dat"
ren 22HA.img "Titanic Moves 2 of 3 Hawai.img"
ren 3NY.dat "Titanic Moves 3 of 3 NY.dat"
ren 33NY.img "Titanic Moves 3 of 3 NY.img"
copy "Titanic Moves 1 of 3 Rotterdam.dat" "%in%"
copy "Titanic Moves 1 of 3 Rotterdam.img" "%in%"
copy "Titanic Moves 2 of 3 Rotterdam.dat" "%in%"
copy "Titanic Moves 2 of 3 Rotterdam.img" "%in%"
copy "Titanic Moves 3 of 3 Rotterdam.dat" "%in%"
copy "Titanic Moves 3 of 3 Rotterdam.img" "%in%"
del "Titanic Moves 1 of 3 Rotterdam.dat"
del "Titanic Moves 1 of 3 Rotterdam.img"
del "Titanic Moves 2 of 3 Rotterdam.dat"
del "Titanic Moves 2 of 3 Rotterdam.img"
del "Titanic Moves 3 of 3 Rotterdam.dat"
del "Titanic Moves 3 of 3 Rotterdam.img"
這是什麼[helper45 = 7zip commandline executable]
之前發生的事情,
ren package.temp package.zip
copy package.zip %temp%
del package.zip
helper45 e "%temp%\package.zip"
'E' 是提取命令。
文件是否確實存在於%temp%目錄中? – 2009-07-13 18:38:33
當然可以。我檢查了它。 – 2009-07-14 12:30:06