I have a batch file which is on a usb key. I need to know the drive name the batch is in.
Example, if it\'s E:\\mybatch.bat it should find E:\\ same thing for F:\\, G:\\
M$ documentation "Using batch parameters" says:
Modifier: %~d0 Description: Expands %0 to a drive letter.
Modifier: %~d0
Description: Expands %0 to a drive letter.