I have a bat file I want to run to install some files onto another flash drive.
The flash drive I want to install on is always called "Main Drive". Sometimes its on G:\ sometimes D:... etc.
I know the folder I want to install into it's called, "Temp". My path would look like this...
Main Drive\Temp\
Normally I would installing something on here by using the path... G:\Temp\ BUT since I don't know which drive this flash drive will be in, I believe I have to use the Flash drives name.
I looked on here for a similar problem, but wasn't able to come up with a solution for this specific problem.
Here is what I have so far... If I change "Main Drive" to the actually drive it works, however I can't always know which drive it will be on.
echo Installing Folders...
xcopy InstallApp\* "Main Drive"\Temp\ /s /i
pause
goto :EOF
Any thoughts?