H
Howard Brazee
I run a batch file that is in a memory card (copying some documents).
I'd like that batch file know the drive that it was run from.
For instance, I want to replace J: below with a variable like
%USERPROFILE% so when I run J:\HOME.BAT or if I run H:\HOME.BAT it
will work the same.
xcopy "%USERPROFILE%\My Documents\My Pictures\Home\*.*" j:\Home\*.*
/Y/S
I'd like that batch file know the drive that it was run from.
For instance, I want to replace J: below with a variable like
%USERPROFILE% so when I run J:\HOME.BAT or if I run H:\HOME.BAT it
will work the same.
xcopy "%USERPROFILE%\My Documents\My Pictures\Home\*.*" j:\Home\*.*
/Y/S