![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-02 06:52 |
48,037 topics / 350,122 posts / today 2 new / 48,250 members |
| DOS批处理 & 脚本技术(批处理室) » How to back up user files like My Documents, Favorites, FOXMAIL, system information, etc. |
| Printable Version 1,528 / 5 |
| Floor1 jjg1144 | Posted 2006-10-24 12:36 |
| 新手上路 Posts 4 Credits 13 | |
|
Asking all you seniors:
I'm still a relatively novice maintainer, often installing systems. Before and after installing the system, I often waste time on user data backup and restoration. I want to use a batch file that, when executed, can back up all user documents such as My Documents, Favorites, Desktop, commonly used program data such as FOXMAIL, as well as system information, user account information, IP parameter information, printer information, drivers, etc. I have many problems and need to ask all you seniors: 1. When backing up user documents, I don't know how to use path variables, like for My Documents, Favorites, Desktop, etc. I used: xcopy %userprofile%\cookies (and favorites) x:\xx\xxx /y /e It prompts that the specified file is not found,???? I know that after copying, I will point My Documents, Favorites, etc. in the registry to x:\xx\xxx, and then export it. After installing the machine, just double-click to import the registry, which is very convenient. Later, when installing this machine, there's no need to back up: and I can also use the DOS command to import the registry key: regedit /e xxx.reg. 2. net user lists user account information, which is also what I want to back up and put into the specified path folder. This is no problem. 3, systeminfo lists PC configuration information, which is used under XP, but under WIN2K, which command is it? /??? 4, // The command to back up IP parameters (can also use the common ipconfig /all to back up the computer name, workgroup, etc.): netsh -c interface dump>d:\ip.txt // Output the IP configuration parameters to the specified IP.TXT text file generated on drive D; // To restore the IP parameters after executing the above backup file: netsh -f d:\ip.txt This is no problem. 5, I don't know how to back up printer information, such as which printers are installed, and it would be better to back up the drivers. Please teach???? 6, How to back up other drivers with commands???? |
|
| Floor2 electronixtar | Posted 2006-10-24 22:49 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
1. Add "" to the 2 path
3. 2k has no such command 5. The driver is in %SystemRoot%\System32\Drivers\ The landlord can use Ghost, confirmed |
|
| Floor3 jjg1144 | Posted 2006-10-25 06:41 |
| 新手上路 Posts 4 Credits 13 | |
|
Thanks to the person above, personally, using GHOST is too general, has poor targeting, and cannot schedule tasks. Batch processing to restore specific user documents takes only a few seconds. It is especially suitable for newly installed systems.
|
|
| Floor4 electronixtar | Posted 2006-10-25 07:10 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Then I suggest you to backup every directory under C: except Windows\
|
|
| Floor5 lxmxn | Posted 2006-10-25 07:15 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Hehe, I also learned some things from the owner's post =_= Hehe—— |
|
| Floor6 jjg1144 | Posted 2006-10-25 09:22 |
| 新手上路 Posts 4 Credits 13 | |
|
Thank you all,
I might not have expressed it well. I want to copy from a newly installed machine or a machine that hasn't done user document migration (meaning migrating to a non-system disk or network) through batch processing COPY, and then do registry or other forms of pointing migration. Later, this machine won't need to be backed up again. Even if it's reinstalled, just point the path. (Recovery is not referring to copying back to the original position.) And at any time, if the system has problems, it won't affect the immediate information of user documents. Besides user documents, system parameters and services also need to be backed up, such as TCP/IP parameters, PC system information, specific services like IIS, etc. I feel it's useful. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |