Link to home
Start Free TrialLog in
Avatar of jfmador
jfmadorFlag for Canada

asked on

How to copy file using command line to client using RDP and shared drive

Hello,

We have setup a TS2008 and we want to copy file from server to the client using command line, we already add my printer and drives as ressource that I want to load to the server. On the TS session I can see my drive name D on PC1. using windows explorer I'm able to copy file using copy-paste. But i'm unable to copy the file directly to my computer using command line.

Our purpose is that we are generating a print file from one of our software to print bar code label directly to a zebra printer that will be connected to the client computer. On the client side we use the following command : "copy prnfile /b \\computername\printername". We are trying to do the same on the TS. If it is not possible to copy the file directly to the printer we want to copy it to the remote drive. I already try this command : "copy file \\pc1\d\file"  and "copy file \\pc1\d$\file" but without success
Avatar of DansDadUK
DansDadUK
Flag of United Kingdom of Great Britain and Northern Ireland image

I think that you can only copy to a share-name; so, with \\computername\printername, "printername" must be set up as a share name on 'computername' (and perhaps limited to 8 characters in length?).

I'm not sure whether or not similar restrictions apply to copying to a target file (I have no knowledge, or experience, of TS); i.e. you can perhaps copy a file to a named share, but not identify the target file itself?.
Avatar of jfmador

ASKER

I was able to copy to a mapped drive using \\tsclient\d, I presume that tsclient is a system variable or that it is handled another way by windows

But i'm still unable to copy a prn file using \\tsclient\printername or \\tsclient\printerport

ASKER CERTIFIED SOLUTION
Avatar of jfmador
jfmador
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial