In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to make the system backup files automatically when shutting down in Windows. It is very detailed and has certain reference value. Friends who are interested must finish reading it.
In the Windows 2000/XP system, we can use the console to create shutdown scripts, which are executed in the background after you issue the shutdown command, automatically backing up these important information.
The methods are as follows:
1. Click "start", "run", enter "mmc" and enter to start the console. Click File,
Add / remove console Unit, click the add button in the lower left corner of the pop-up dialog box, then select Group Policy from the available stand-alone Control Units that are open, click the add button, and then click OK to return to the console interface.
two。 In the "Local computer" Policy under "console Root Node" on the left side of the console interface, expand "Windows Settings", expand "script (Startup / shutdown)", double-click "shutdown" in the right window, and open the "shutdown Properties" interface.
3. Click the add button in the shutdown Properties interface to open the add script dialog box. We can name the script, such as "Backup.bat".
4. When the settings are complete, click the File and Save commands to save the console so that you can adjust it later. The next time you turn it off, you will find that in the shutdown prompt window, except for "shutting down." In addition to such a message, a prompt that "the shutdown script is being executed" is also displayed, indicating that the shutdown script is being executed.
5. Now let's add content to the shutdown script file. Since we are backing up data, using the XCOPY command is the most simple and effective. For example, if we want the contents of favorites to be backed up to the removable hard drive every time we shut down (assuming that the removable hard drive letter is F), we can add this command to the batch file:
XCopy "C:\ Documents and Settings\ Administrator\ Favorites" F:\ Backuup\ Favorite / E / y
Parameter E means to copy all subfolders; since no feedback is provided when the shutdown script is executed, parameter Y is required, otherwise when a file with the same name is found, XCOPY will prompt you whether to overwrite so that the command cannot be executed smoothly.
In addition, special attention should be paid when making shutdown scripts: make sure that there are no errors in its execution and there is no need for user intervention. As long as one command goes wrong or waits for the user to enter, the following commands will not be executed.
If you find it too troublesome to use XCOPY, there is another trick: create a scheduled task in the Control Panel, set the task to be executed once (there is no need to make an execution plan for it), and execute the files you need to back up. After saving this task, click the newly added task in Control Panel, Task Plan, then select Properties with the right mouse button, copy the command line in the properties window, and paste the command line into the batch file.
The above is all the contents of the article "how to make the system back up files automatically when shutting down in Windows". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.