|It seems the first hump to get over is finding the drive letter for the flash. The volume serial is assigned when the drive is formatted and usually won't change.|
:: get letter of flash drive by vol
@echo off > newfile & setLocal EnableDelayedExpansion
for %%d in (d e f g h i) do (
vol %%d: > nul 2> nul
if !errorlevel! equ 0 (
for /f "tokens=5 skip=1" %%s in ('vol %%d: 2^> nul') do (
if %%s equ 90E7-569C set FD=%%d:
echo flash is !FD!
If at first you don't succeed, you're about average.