Can I access Remote Desktop shared drive from command prompt?

15

5

I am using Windows Remote Desktop to connect to a server. I have enabled access to a local drive as per http://support.microsoft.com/kb/313292 but I'm trying to figure out how to access the drive from the command prompt.

As per the link the shared drive shows up as drive_letter on terminal_server_client_name but using that in the command prompt doesn't work.

Does anyone know of a way I can access this file from command prompt or power shell so I can script some stuff out?

Thanks,

Shane

ShaneC

Posted 2011-02-15T17:52:42.410

Reputation: 255

It should come as \\hostname\drive - but can't confirm now – Sathyajith Bhat – 2011-02-15T18:11:33.177

I tried that and it doesn't work which makes sense since that is actually a completely valid network address which I am not sharing. – ShaneC – 2011-02-15T18:28:18.967

Answers

25

\\tsclient\X

where X is the drive letter.

user1686

Posted 2011-02-15T17:52:42.410

Reputation: 283 655

1

I have been looking for a simple way to do this too, due to a simple batch file I am scripting. You can access the location by mapping the network drive. Within your remote desktop Windows OS, go to Network > tsclient and right click the network drive and select "Map Network Drive". Now you can access it with the letter that is mapped to it.

George Walker

Posted 2011-02-15T17:52:42.410

Reputation: 11