
當我使用此批次檔在 Windows 10 中安裝和解除安裝磁碟機時,我收到此錯誤訊息。
安裝:
@echo off
REM Be sure to change this to the drive letter you want to mount the drive to!
set drive=E
REM Be sure to change this to the Volume Name of the drive you want to mount!
set volume=\\?\Volume{52ade1a4-0fd4-44cd-aa69-bfda739bb9e6}\
set volume=\\?\Volume{4d654d26-f65d-4c67-b83c-876de0d6820b}\
set volume=\\?\Volume{59cc5e85-9403-425f-bd28-c22ed4e8ab8d}\
set volume=\\?\Volume{52fdf924-f0fb-4ba7-99e0-096a9c9d124a}\
:start
echo Mounting Drive...
mountvol %drive%: %volume%
echo Drive Mounted!
pause
exit
解除安裝:
@echo off
REM Be sure to change this to the drive you want to unmount!
set drive=E:
echo Unmounting Drive...
mountvol %drive% /p
echo Drive Unmounted!
pause
exit
任何幫助將不勝感激。
答案1
這 芒特沃爾 語法是:
mountvol [drive:]path VolumeName
該命令應如下所示:
mountvol %drive%:\myfolder %volume%
您可以嘗試以下操作,但可能會失敗,因為 Windows 不喜歡磁碟根目錄上的檔案:
mountvol %drive%:\ %volume%
還要驗證這一點%drive%
並%volume%
在運行時具有正確的值。