gpedit打开后,目录[windows设置]\[脚本(启动或停止)\启动]下选择该脚本
C:\WINDOWS\System32\GroupPolicy\Machine\Scripts\Startup\myrandisk.bat
mkdir B:\TEMP
mkdir B:\TMP
mkdir B:\Chrome
mkdir B:\Build
mkdir B:\Firefox
mkdir B:\Other
mkdir "B:\Other\Internet 临时文件"
mkdir "B:\Other\Edge"
del /F /A /Q C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache\*
rmdir C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache
mklink /D "C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache" B:\Other
del /F /A /Q C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache\*
rmdir C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache
mklink /D "C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache" B:\Other
mkdir "D:\VCTMP"
mklink /D "B:\TMP\VC++" "D:\VCTMP"
copy /Y "C:\Users\hzb\AppData\Roaming\Scooter Software\Beyond Compare 3\MyBCState.xml" "C:\Users\hzb\AppData\Roaming\Scooter Software\Beyond Compare 3\BCState.xml"
mkdir B:\TMP
mkdir B:\Chrome
mkdir B:\Build
mkdir B:\Firefox
mkdir B:\Other
mkdir "B:\Other\Internet 临时文件"
mkdir "B:\Other\Edge"
del /F /A /Q C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache\*
rmdir C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache
mklink /D "C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache" B:\Other
del /F /A /Q C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache\*
rmdir C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache
mklink /D "C:\Users\hzb\AppData\Local\Microsoft\Windows\WebCache" B:\Other
mkdir "D:\VCTMP"
mklink /D "B:\TMP\VC++" "D:\VCTMP"
copy /Y "C:\Users\hzb\AppData\Roaming\Scooter Software\Beyond Compare 3\MyBCState.xml" "C:\Users\hzb\AppData\Roaming\Scooter Software\Beyond Compare 3\BCState.xml"