Run Scheduled Task automatic At Shutdown with Run a simple Script

Suppose, you want to make a backup copy of your entire directory c:\importantdir to a network drive called Z:\ via a shutdown script.

First off, let's create a new file copyimportantdir.bat with the following copy command :
Copy c:\importantdir\*.* Z:\
And save the file in c:\importantdir

Next, you need to invoke the group policy editor. To do that :
  • click the Start button
  • select "Run"
  • type "gpedit.msc" (without the quotes) in the "open" box and click ok
Windows opens up the Group Policy editor.
  • In the left part of the screen, navigate to Computer Configuration->Windows Settings and select "Scripts (Startup/shutdown)".
  • In the right part of the screen, right-click "Shutdown" and select "properties"
  • In the shutdown properties dialog, click the "add button"
  • Enter "c:\ importantdir\copyimportantdir.bat" (without the quotes) in the script name field (leave the script parameters field empty for this example)
  • Click ok
  • Click ok once more
  • You can now close the Group Policy editor, your Windows shutdown script is ready and will be executed each time you shut down your Windows XP.

0/Post a Comment/Comments

Please write here your valuable comment.

Previous Post Next Post