Automatically back up files when the system is shut down

  

Computer shop news Every time we shut down, we need to save various files, but there are still many system status information will be missed, such as IE favorites, cookies, some applications Program data and more. So, can we let the system automatically back up these files for us every time we shut down? In Windows 2000/XP, we can use the console to create shutdown scripts that will be executed in the background after you issue a shutdown command to automatically back up this important information. Step 1 Click “Start”,“Run”, enter “mmc” and press Enter to start the console. Click “File”,“Add/Remove Console Unit", from the pop-up dialog box, click the “Add” button in the lower left corner, and then from the open "Allowed Independent Control Unit" Select “Group Policy", click the “Add” button, and then click the "OK" button to return to the console interface. Step 2 In the left side of the console interface, click ““‘Local Computer & rsquo;Strategy> in the Local Computer & rsquo;Strategy" in turn, "Windows Settings", “Script (Startup/Shutdown)”, Double-click "Shutdown" in the right window to open the "Shutdown Properties" interface. Step 3 Click the “Add” button in the “Shutdown Properties” button to open the “Add Script” dialog box. We can name the script, such as “Backup.bat”. Step 4 After the setting is completed, click the “File” and “Save” dialog to save the console for later adjustment. The next time you shut down, you will find that in addition to the message “Shutdown...”, the shutdown prompt window will also display the “Running Shutdown Script” prompt indicating that the shutdown script is executing. Step 5 Now let's add content to the shutdown script file. Since we are doing data backups, using the XCOPY command is the easiest and most effective. For example, we want the contents of the favorites to be backed up to the mobile hard disk every time the computer is turned off (assuming the mobile hard disk drive letter is F), then you can add such a command to the batch file: XCopy "C:\\Documents and Settings \\Administrator\\ Favorites" F:\\Backuup\\Favorite /E /y The parameter E means to copy all subfolders; since the shutdown script does not provide any feedback information when executed, the parameter Y is required, otherwise after the file with the same name is found, XCOPY will prompt for overwriting and the command will not execute smoothly. Morning Wind Tip: Be careful when making a shutdown script. Make sure that it does not go wrong during execution and does not require user intervention. As long as one command fails or waits for user input, the following commands will not be executed. If you feel that using XCOPY is too much trouble, there is another trick: set up a scheduled task in the "Control Panel", set this task as one execution (you don't need to make an execution plan for it), and the task you perform is that you need to back up. file. After saving this task, click the newly added task in “Control Panel>,“Task Schedule", then use the right mouse button to select “Properties>, copy the command line in the Properties window, and then click this command line. Paste into the batch file.

Copyright © Windows knowledge All Rights Reserved