@echo off
for %%i in (Z Y X W V U T S R Q P L O N M L K J I H G F E D C ) do (
if exist %%i:\nul echo The last drive letter is %%i & pause>nul && goto :eof
)
This can determine what the last drive letter is—what is the principle behind it?
Thanks
for %%i in (Z Y X W V U T S R Q P L O N M L K J I H G F E D C ) do (
if exist %%i:\nul echo The last drive letter is %%i & pause>nul && goto :eof
)
This can determine what the last drive letter is—what is the principle behind it?
Thanks
