I'm a newbie who just started learning batch files.. I want to write a batch file myself to clean out junk... What I wrote is as follows:
@echo off
echo 扫荡开始
rd /q /s "c:\temp"
md "c:\temp"
del /q /s "j:\J:\Temporary Internet Files\*.*"
echo 扫荡完毕
pause
After I wrote it like this and ran it, it came up with something like that file is in use... then the commands after that wouldn't run...
What's going on here? I can't figure it out... How can I make the batch file keep executing the commands below even when it encounters an error....
Please enlighten me, experts....
@echo off
echo 扫荡开始
rd /q /s "c:\temp"
md "c:\temp"
del /q /s "j:\J:\Temporary Internet Files\*.*"
echo 扫荡完毕
pause
After I wrote it like this and ran it, it came up with something like that file is in use... then the commands after that wouldn't run...
What's going on here? I can't figure it out... How can I make the batch file keep executing the commands below even when it encounters an error....
Please enlighten me, experts....
