Not tested. Create a batchfile (c:\myfile.bat) with the following to lines:.
net use x: \\server\share
cd /d x:\
then issue this command:
cmd /k c:\myfile.bat.
Like I said, I didn't test it but it should work.
Louis
"Ayush" <"ayushmaan.j[aatt]gmail.com"> wrote in message
news:(E-Mail Removed)...
> Replied to [cu]s message :
> > Hi I am trying to write a simple batch file that opens a command
> > prompt under my domain username, then maps a network drive. I can do
> > this fine. The thing is that I would also like to change to this new
> > drive but can't figure out how to execute this command in the new
> > command prompt window that opens. The line of code is as follows.
> >
> > runas /user:domain\username "cmd /k net use x: \\server\share"
> >
> > I would like to add "x:" to the batch file. Any help would be great.
> > Thanks
> >
>
>
> cd /d x:\
>
> Good Luck, Ayush.
> --
> XP-Tips [Schedule a weekly defragmentation] :
> http://www.microsoft.com/windowsxp/u...ps/defrag.mspx