| 
 | 
 
- @echo off
 
 - set sysreg=\windows\system32\config\SYSTEM
 
  
- :_cursys
 
 - echo Perform current system...
 
 - reg add HKLM\SYSTEM\ControlSet001\Services\FsDepends\Parameters /v VirtualDiskExpandOnMount /t reg_dword /d 4 /f
 
  
- set dstd=%1
 
 - if NOT [%dstd%]==[] goto :_sys
 
  
- for %%d in (e f g h i j k l m n o p q r s t u v w x y z) do (
 
 -         set dstd=%%d:
 
 -         call :_sys %%d: )
 
 - goto :eof
 
  
- :_sys
 
 - if not [%1]==[] set dstd=%1
 
 - if not exist %dstd%\%sysreg% goto :eof
 
 - echo.
 
 - echo Perform %dstd%...
 
 - reg load HKLM\SYS %dstd%\%sysreg% 
 
 - reg add HKLM\SYS\ControlSet001\Services\FsDepends\Parameters /v VirtualDiskExpandOnMount /t reg_dword /d 4 /f
 
 - reg unload HKLM\SYS
 
 - goto :eof
 
 
  复制代码  |   
 
 
 
 |