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????
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????
