|
http://www.uwe-sieber.de/drivetools_e.html
PE下我是沒用啦,但當前的系統正在用,用好幾年了。
我是把它加入右鍵選菜單。
- @ECHO OFF
- if /i "%PROCESSOR_IDENTIFIER:~0,3%"=="X86" (GOTO x86) ELSE GOTO x64
- :x86
- reg add "HKLM\Software\Classes\Drive\shell\UnMount Disk" /f /ve /t REG_SZ /d "卸載這個磁碟機" >nul
- reg add "HKLM\Software\Classes\Drive\shell\UnMount Disk\command" /f /ve /t REG_SZ /d ""%cd%\RemoveDrive.exe" %%1 -h" >nul
- exit
- :x64
- reg add "HKLM\Software\Classes\Drive\shell\UnMount Disk" /f /ve /t REG_SZ /d "卸載這個磁碟機" >nul
- reg add "HKLM\Software\Classes\Drive\shell\UnMount Disk\command" /f /ve /t REG_SZ /d ""%cd%\RemoveDrive-x64.exe" %%1 -h" >nul
- exit
复制代码
|
|