bat文件替换出错
来源:百度知道 编辑:UC知道 时间:2024/06/14 22:04:44
cd c:\C:\BeauPhone\Voice
del ComMessage.tel
copy end.tel ComMessage.tel
请问为什么我写的这个文件不能替换?请高手解答,谢谢!
del ComMessage.tel
copy end.tel ComMessage.tel
请问为什么我写的这个文件不能替换?请高手解答,谢谢!
set "path=C:\BeauPhone\Voice"
del "%path%\ComMessage.tel"
copy "%path%\end.tel" "%path%\ComMessage.tel"
试试这个吧~~~OK的!
cd /d C:\BeauPhone\Voice
del ComMessage.tel
copy end.tel ComMessage.tel
这样就行了。
怎么两个C:\ ?
应该是
c:
cd 两个C:\后面的路径
copy C:\BeauPhone\Voice\end.tel ComMessage.tel