如下文所示,可将代码保存为bat格式,运行后修改ie缓存到"C:\ie1"文件夹。


reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v cache /t reg_expand_sz /d "C:\ie1" /f


reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v cache /t reg_sz /d "C:\ie1"  /f