How do I change to a mapped network drive at the command line?

I have a networked drive mapped to "U:\"

I want to go to that drive from a command line.

However, when I try I get an error

C:>u: The system cannot find the drive specified.

How do I do that? Can I? Is there some Environmental setting I need to do?

4 Answers

You need to make sure that the drive is mapped under the user which is running the command prompt. Try typing net use U: and see what info it gives you. If it's not showing the drive as being mapped, try remapping the drive (net use U: \\servername\share\path\).

You can also try changing directories by using cd /d U:, rather than just U:. This won't help you though if the network path doesn't exist.

2

CD if in the user account where drive is mapped.If you are in a Elevated Command you are no longer in the mapped user account.

Win 7: net use U: \servername\share\path\

win 8: pushd \servername\share\path\

1

In case you're using Windows 8 the pushd command will help you

pushd u:

Source: How to cd to a network drive on Windows 8?

1

Windows PowerShell in Administrator mode will allow you to perform MS-DOS Commands you are looking for.

Open Windows PowerShell... Type CD ...

Ex.

PS C:\> CD U:\

PS U:\>

Hope that helps.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like