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:\importantdirNext, 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
- 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.
Post a Comment
Please write here your valuable comment.