Remote Desktop - Referring to Local Drives in DOS Comand


G

Guest

I want to use a DOS batch file to copy some files from a remote computer that
I am connecting to via Remote Desktop.

I select Options in the Remote Desktop connection and check Disk drives on
the Local Resources tab. The drives appear in Windows Explorer as 'C on
ConnectedPC' (where ConnectedPC is the name of the computer from where I am
using Remote Desktop,) but I cannot map this drive to a drive letter.

How do I refer to this drive and it's folders in a DOS copy command?
What I want to say is for example:
COPY c:\RemotePC-Folder\*.* 'C on ConnectedPC'\folder\

Thanks,
Dan
 
Ad

Advertisements

S

Steve Urbach

I want to use a DOS batch file to copy some files from a remote computer that
I am connecting to via Remote Desktop.

I select Options in the Remote Desktop connection and check Disk drives on
the Local Resources tab. The drives appear in Windows Explorer as 'C on
ConnectedPC' (where ConnectedPC is the name of the computer from where I am
using Remote Desktop,) but I cannot map this drive to a drive letter.

How do I refer to this drive and it's folders in a DOS copy command?
What I want to say is for example:
COPY c:\RemotePC-Folder\*.* 'C on ConnectedPC'\folder\

Thanks,
Dan
did you try
[\\computername\sharename[\volume] [password | *]]
syntax instead of the drive letter(s)?
 
Ad

Advertisements

Joined
May 10, 2010
Messages
1
Reaction score
0
Try this:

NET USE Z: \\tsclient\c

Where Z: is an available drive letter, and \c is the local drive designation you are mapping. You can also do by right clicking on "My Computer" and selecting "Map Network Drive..."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top