用BAT或VBS将C盘的用户文档和临时文件转移到D
用BAT或VBS将C盘的用户文档和临时文件转移到D 写好了,写了半天,主要是那么多键值,得慢慢对,很累人的。. @echo off rem 将“我的文档”移动到D盘下的ccc文件夹,然后删除“我的文档” set “path=d:\\ccc“ md “%ljpath%“ xcopy /e /q /h /i /c /y “C:\\Documents and Settings\\Administrator\\My Documents“ “%ljpath%\\“ rd /s /q “C:\\Documents and Settings\\Administrator\\My Documents“ rem 修改注册表 echo 开始修改注册表, reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\user shell folders“ /v personal /t reg_expand_sz /d “%ljpath%“ /f reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\user shell folders“ /v “My Music“ /t reg_expand_sz /d “%ljpath%\\My Music“ /f reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\user shell folders“ /v “My Pictures“ /t reg_expand_sz /d “%ljpath%\\My Pictures“ /f reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\user shell folders“ /v “My Video“ /t reg_expand_sz /d “%ljpath%\\My Video“ /f reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\user shell folders“ /v Templates /t reg_expand_sz /d “%ljpath%\\temp\\Templates“ /f reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\user shell folders“ /v Cache /t reg_expand_sz /d “%ljpath%\\temp\\Temporary Internet Files“ /f reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\user shell folders“ /v Cookies /t reg_expand_sz /d “%ljpath%\\temp\\Cookies“ /f reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\Shell Folders“ /v personal /t reg_sz /d “%ljpath%“ /f reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\Shell Folders“ /v “My Music“ /t reg_sz /d “%ljpath%\\My Music“ /f reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\Shell Folders“ /v “My Pictures“ /t reg_sz /d “%ljpath%\\My Pictures“ /f reg add “hkcu\\software\\microsoft\\windows\\currentversion\\explorer\\Shell Folders“ /v “My Video“ /t reg_sz /d “%
|