How to detect Disk drive letter using batch code -


i need guys. want create batch file detect running dvd in disk drive , after that, want batch file write it's letter text file. can me wiritng batch code so? hope can me. thank you.

this list drive letters in drives.txt:

@echo off %%a in (a b c d e f g h j k l m n o p q r s t u v w x y z) (if exist "%%~a:" echo %%~a: >> drives.txt) 

which produced me:

c: p: r: s: 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -