Home All Groups Group Topic Archive Search About

How to chanage directory to mapped network drive?

Author
7 May 2009 4:32 PM
niladri chatterjee
Pl. note R:\PDFS\PACKING_SLIP is already drive mapped.

But why I cannot change my directory to  R:\PDFS\PACKING_SLIP by typing 
c:\> CD R:\PDFS\PACKING_SLIP    from DOS (CMD command) ???

I have added a network drive R:\PDFS\PACKING_SLIP in my Environment Variable
Path (both in USER and System variable). From cmd > PATH , I can see the
R:\PDFS\PACKING_SLIP  in my maping path too (after reboot).

Actually My object is to write a batch program where I will switch to the
R:\PDFS\PACKING_SLIP and there I will call the FTP.

pl advise I am not a networking person.

Author
7 May 2009 5:19 PM
Bob Lin (MS-MVP)
you may use two commands:
R:
cd\PDFS\PACKING_SLIP


--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com


Show quoteHide quote
"niladri chatterjee" <niladrichatter***@discussions.microsoft.com> wrote in
message news:36F43FA4-89B4-4E07-92EE-160A5C4D7EBA@microsoft.com...
> Pl. note R:\PDFS\PACKING_SLIP is already drive mapped.
>
> But why I cannot change my directory to  R:\PDFS\PACKING_SLIP by typing
> c:\> CD R:\PDFS\PACKING_SLIP    from DOS (CMD command) ???
>
> I have added a network drive R:\PDFS\PACKING_SLIP in my Environment
> Variable
> Path (both in USER and System variable). From cmd > PATH , I can see the
> R:\PDFS\PACKING_SLIP  in my maping path too (after reboot).
>
> Actually My object is to write a batch program where I will switch to the
> R:\PDFS\PACKING_SLIP and there I will call the FTP.
>
> pl advise I am not a networking person.
Author
7 May 2009 5:45 PM
Pavel A.
niladri chatterjee wrote:
> Pl. note R:\PDFS\PACKING_SLIP is already drive mapped.
>
> But why I cannot change my directory to  R:\PDFS\PACKING_SLIP by typing 
> c:\> CD R:\PDFS\PACKING_SLIP    from DOS (CMD command) ???
>
> I have added a network drive R:\PDFS\PACKING_SLIP in my Environment Variable
> Path (both in USER and System variable). From cmd > PATH , I can see the
> R:\PDFS\PACKING_SLIP  in my maping path too (after reboot).
>
> Actually My object is to write a batch program where I will switch to the
> R:\PDFS\PACKING_SLIP and there I will call the FTP.
>
> pl advise I am not a networking person.

cd /d drive:\directory

See also pushd and popd commands.

-- pa