本帖最后由 pcl_test 于 2016-7-15 09:37 编辑
- for /f "tokens=2,*" %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Desktop"') do ( set desk=%%j )
- echo 桌面路径是%desk%
- xcopy "%desk%"\*.* "D:\MARK请~1\Desktop\" /s /h
- pause >nul
- @echo off
- REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders">%Temp%\Temp.txt
- FOR /F "TOKENS=2* DELIMS= " %%I IN ('TYPE %Temp%\Temp.txt^|FINDSTR /I "Personal"') DO ( SET "Personal=%%~J" )
- del %Temp%\Temp.txt
- echo 我的文档的路径是: "%Personal%"
- xcopy "%Personal%"*.* "D:\MARK请~1\Docume~1\" /s /h
- pause >nul
- for /f "tokens=2,*" %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Favorites"') do ( set Fav=%%j )
- echo 收藏夹路径是%Fav%
- xcopy "%Fav%"*.* "D:\MARK请~1\Favori~1\" /s /h
- pause >nul
- @echo off
- @ D:\Todisk.reg
- @echo off
- @ D:\ClientSetup.exe
复制代码
|