can you have a look at my batch file?
- This topic has 2 replies, 2 voices, and was last updated 11 years, 3 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Home › Forums › Scripting › General Scripting › can you have a look at my batch file?
I’ve always been terrible at scripting and I can’t seem to get this simple batch file to work. Can you see any issues?
cd..
cd..
cd..
cd..
cd documents and settings
cd all users
cd desktop
if exist “c:documents and settingsall usersdesktopDefragment Your Hard Disk.exe”
goto yes1
copy “\domain.comnetlogondefragscriptDefragment Your Hard Disk.exe”
:yes1
echo defrag file exists
if exist “c:documents and settingsall usersdesktopCleanup Your Hard Disk.lnk”
goto end
copy “\domain.comnetlogondefragscriptCleanup Your Hard Disk.lnk”
:end
echo cleanup file exists[/CODE][CODE]
cd..
cd..
cd..
cd..
cd documents and settings
cd all users
cd desktop
if exist “c:documents and settingsall usersdesktopDefragment Your Hard Disk.exe”
goto yes1
copy “\domain.comnetlogondefragscriptDefragment Your Hard Disk.exe”
:yes1
echo defrag file exists
if exist “c:documents and settingsall usersdesktopCleanup Your Hard Disk.lnk”
goto end
copy “\domain.comnetlogondefragscriptCleanup Your Hard Disk.lnk”
:end
echo cleanup file exists[/CODE]
You must be logged in to reply to this topic.
Find out more about our cookie policy here.