0
我想製作一個批處理文件,其中用戶輸入一個字母,然後會有消息 顯示該驅動器號是或不可用。如果這封信是可用的,那麼它會替代c:\ users .....我是新手,所以任何幫助都會很棒。這是我這是不正確批處理文件如果聲明cmd
@echo off
if [%1] == [c]GOTO MESS
if [%1]== [d] GOTO MESS
If NOT [%1]==[c] GOTO LABEL
If not [%1]==[d} GOTO LABEL
:LABEL
echo this drive letter is available
pause
subst %1: "c:\users\mydocuments"
echo Successful
:MESS
echo The drive letter you entered is in use
:END
這是很難說的問題要問。 –