鲁虺贴吧搜索堂
输入关键词:
类目资源: 智虺堂 康熙字典 汉语词典 毒鸡汤 谜语 名言 解梦 谚语 古籍溯源 异体字 大辞海 制度 语言翻译

鲁虺贴吧搜索堂 / 用BAT或VBS将C盘的用户文档和临时文件转移到D上一个 查看全部 下一个

用BAT或VBS将C盘的用户文档和临时文件转移到D

用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 “%