『楼 主』:
如何备份用户文件象我的文档,收藏夹,FOXMAIL,系统信息等
使用 LLM 解释/回答一下
请教各位老大:
我还是较菜的维护员,常会装系统.在装机前后,常为用户数据备份和还原上浪费时间.我想用一个批处理文件,执行后可备份全部的用户文档比如:我的文档,收藏夹,桌面,常用程序数据如FOXMAIL,还有系统信息,用户帐户信息,IP参数信息,打印机信息,驱动程序.等等.我遇到很多问题,要请教各位老大:
1.备份用户文档时,不知如何用路径变量,象我的文档,收藏夹,桌面等,我用:xcopy %userprofile%\cookies(还有favorites) x:\xx\xxx /y /e
提示找不到指定文件,????
我知道COPY完后,将注册表中我的文档,收藏夹之类指向x:\xx\xxx,然后导出,装完机只双击导入注册表很方便,以后装此机也不用备份了: 也可以用DOS命令导入注册表项:regedit /e xxx.reg就可以了.
2,net user列出用户帐户信息,这些也是我想要备份的,办到指定路径文件夹.这个没问题,
3,systeminfo列出PC配置信息,是在XP下用的,可是在WIN2K不知是那个命令?/???
4,//备份IP参数的命令(也可用常用的ipconfig /all备份出机名工作组等):
netsh -c interface dump>d:\ip.txt
//将IP配置参数输出到指定生成的D盘路径下的IP.TXT文本文件 ;
//将上面备份文件执行后恢复IP参数:
netsh -f d:\ip.txt 这个没问题
5,不知如何备份打印机信息,比如装有哪些打印机,能备份出驱动更好,请教????
6,其他驱动如何用命令备份????
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????
|