原帖由 semiuel 于 2009-11-20 10:43 发表
xcopy "C:\Documents and Settings\%USERNAME%\Favorites" "d:\%USERNAME%\Favorites\"
学习为了应用,非常感谢你的精彩回复,为表示感谢,现附上实际应用代码:- echo 输入盘符,然后按回车
- echo ───────────────
- echo.
- Set HDD=
- set /p HDD=盘符[X]:
- set newdest=%HDD%:\Documents and Settings\%USERNAME%
- if not exist "%HDD%:\Documents and Settings\%USERNAME%\My Documents" (xcopy "%userprofile%\My Documents" "%newdest%\My Documents" /i /s /e)
复制代码
[ 本帖最后由 temp 于 2009-11-21 13:13 编辑 ] |