gromul
asked on
Batch file to save current drive letter into a variable
I would like to be able to do something like this: command %driveletter% . Any help is appreciated.
Thanks!
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hey.
If you are using XP you can use these:
%Homepath%
%Systemdrive%
If you are using XP you can use these:
%Homepath%
%Systemdrive%
for /f "tokens=*" %A in ('CD') do set DRIVE=%~dA