bear1alex1 發表於 2017-6-23 21:46

maodou 發表於 2017-6-24 01:39

@echo off
FOR %%I in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO If exist %%I:\NUL echo %%I

bear1alex1 發表於 2017-6-25 10:49

maodou 發表於 2017-6-25 11:12

bear1alex1 發表於 2017-6-25 10:49
如果使用這種方式給磁碟代號來判斷,該如何跟您的代碼結合呢??

@echo off
set disk =
:again
set /p disk=輸入完畢請按【ENTER】 磁碟代號:
If not exist %disk%:\NUL goto again

tools241 發表於 2017-6-25 21:55

頁: [1]
查看完整版本: 請問批次檔案撰寫問題