Morning all.
I'm having a small issue when it comes to a batch file that will allow me to
1. Map a network drive (net use u: \\Network Share\user$)
2. Open CMD and change the default C: to the newly mapped Network share (U:) - cd /DU:\
3. After changing the directory in CMD (cd /DU:\) I would like user input that would promtp to changed to a new folder within the U: e.g. cd johnsmith - having the batch go stright to U:johnsmith wouldn't be the best option as the batch needs to be used many times for different folders in the U:
I hope this doesnt confuse people - People it did make me rather dizzy
------------------
net use u: \\Network Share\user$
cd /DU:\
pause
@echo off
set /p UserInputPath= What Directory would you like?
cd U:\%username%
Mapping Network via CMD with User interactions - :)
Moderator: DosItHelp
Re: Mapping Network via CMD with User interactions - :)
cd "U:\%UserInputPath%"
Re: Mapping Network via CMD with User interactions - :)
Another option would be to use just pushd and then use relative paths.