Mount and dismount hard drive through a script
find volume name command: mountvol
REM Be sure to change this to the drive you want to unmount!
echo Unmounting Drive...
mountvol %drive% /p
echo Drive Unmounted!
REM Be sure to change this to the drive letter you want to mount the drive to!
REM Be sure to change this to the Volume Name of the drive you want to mount!
echo Mounting Drive...
mountvol %drive%: %volume%
echo Drive Mounted!
在 Windows 7 執行這兩個 script 需要 Run as Administrator。
如果想直接執行必須 disable UAC。