Batch file

I need a batch file that will run from a cmd prompt and change the directory to c:\symantec\Symantec EndPoint Protection and stop the smc service and then copy the "Sylink.xml" file in that directory Then start the smc service.
Who is Participating?
This must be run with administrator priveleges (under vista, with elevated privelges as well.)
Where X:\ is the location you would like the file copied to.

@echo off
cd "\symantec\Symantec Endpoint Protection"
net stop "smcservice"
copy sylink.xml X:\sylink.xml
net start "smcservice"

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.