This .bat file uses fsutil to get a list of the drives and types on a windows machine.
Batch Script to list Drives and Types
------------------------------------------
Batch Script to list Drives and Types
------------------------------------------
Code:
@echo off
setlocal
::
REM Get and list drive types using fsutil
::
set "list="
for /f "tokens=*" %%a in ('^
fsutil fsinfo drives^|^
find /V ""'
) do (
set "dv=%%a"
call set "list=%%list%% %%dv:~-3%%"
)
for %%a in (%list%) do (
fsutil fsinfo drivetype %%a
)

