Run batch file with custom drive mappings
- by mwolfe02
I want to create a "mini virtual environment" to run a program. The only difference between my normal environment and the virtual one would be the drive mappings.
I have an X: drive mapped to \\some\network\location
I have a program myapp.exe that expects the X: drive to be mapped to C:\local\path
I need to keep my X: drive mapped to \\some\network\location throughout the process
I would like to be able to run the following batch file and not have it affect the current environment:
subst X: C:\local\path
myapp.exe