Printing in TS (was RE: Telnet with a Windows 2003 server)
Bill Campbell
bill at celestial.com
Thu Nov 29 14:35:13 PST 2007
On Thu, Nov 29, 2007, Bob Rasmussen wrote:
>First, thanks to Ken for pointing me in the right direction, indirectly.
>It turns out that a variation of the FOR command can read output (stdout)
>from a command-line program, and copy it into a variable, similar to the
>Unix
> var=`somecommand`
>
>To recap the problem I'm trying to solve: I want a program (such as
>filePro) running on a Terminal Services server to print on a specific
>printer attached to my client PC (running Remote Desktop Client). The
>problem is that the visible name of the printer from the server's point of
>view changes with the session number.
I do something similar with our auction systems running Linux where there's
a script that sets the LPDEST environment variable based on the IP address
of the connecting machine. The Linux box that's running the main
application then directs jobs using that (and can map to different printers
using a simple ASCII file in case there's no printer on the remote or
there's a problem with it).
Bill
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
"If taxation without consent is not robbery, then any band of robbers
have only to declare themselves a government, and all their robberies
are legalized." -- Lysander Spooner, Letter to Grover Cleveland 1886
More information about the Filepro-list
mailing list