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
Post a Comment