Rod
Rod

Reputation: 4451

How do I change my location to a network share in PowerShell?

I want to be able to set my location to a network share in the PowerShell command window. I had thought that doing something like \\SERVERNAME\SHARE_NAME would do the trick, but it doesn't. So how do I do it?

Upvotes: 1

Views: 842

Answers (1)

David
David

Reputation: 6571

Set-Location //server/share

Or, using the alias cd

cd //server/share

Note: you may also use Set-LocationEx in place of Set-Location.

Upvotes: 1

Related Questions