Here's the code that I am working with:
rem @echo off
setlocal enable delayedexpansion
for /f "tokens=3" %%i in ('echo list volume ^| diskpart ^| find /i "Removeable"') do (
echo %%i:
if %%i LSS E (
echo Sorry, no USB Flash Drive available.
pause
EXIT
)
)
echo %%i:
echo All is well.
:FINALEND
I'm going a little nuts over this, as I think it should be fairly simple, but DOS is so picky. LOL Thanks in advance. If it isn't possible to remove the colon, then it's time to finagle another angle to make it work.