I have a few codes here that work but I need something new. I have drive letter detect and if CD Exist in drive batch code
But now I need if is a cd drive batch code and if not do other thing
Codes I Have:
if CD in drive:
@echo off
title CD Test
:main
CLS
WMIC CDROM E: GET MEDIALOADED | FINDSTR "TRUE"
IF %ERRORLEVEL% EQU 0 (
goto one
) ELSE (
goto two
)
If Drive Letter Exist:
@echo off
title If Exist Test
:main
CLS
echo.
echo press any key to see if drive C:\ exists
echo.
pause>nul
IF EXIST C:\ (GOTO yes) ELSE (GOTO no)
There and while both of those are working great I have no idea how to tell if its a cd drive or say NTFS or FAT32 I believe CD drive format if CDFS but im not sure.
So i need a code that will tell me if drive is NTFS/FAT32 or CDFS and goto 1 option or other based on findings.
Or would it be better to just check if drive letter is empty? 0 bytes... Would that effect if say a empty usb was plugged in it could be called a cd drive?