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?


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.

  • 1
    it is mapped but still not working when I use cd – user5359531 Jul 12 '19 at 20:05
  • Perfect answer.! very easy to use shared drives now. – DeshDeep Singh Nov 8 '19 at 10:41

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\

  • Weirdly I am on Windows 7 but it's pushd not net use. Maybe because of some update/patch? – Hack-R May 24 '17 at 18:37

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?

  • why was this downvoted? – wizlog Jul 26 '17 at 22:35

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

Open Windows PowerShell... Type CD ...


PS C:\> CD U:\

PS U:\>

Hope that helps.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.