>I would like to simulated on my computer printing to a network printer defined with name like \\myserver\printername (of course, using the syntax: set printer to name (pcPrinterName)). My local printer name is "HP DeskJet 712C".
>
>How can I make it work with something like the \\mypc\HP DeskJet 712c? What would be [\\mypc] on my pc? Would it be PC name in the properties?
>
>Thank you in advance for any help.
You can use SYS(0) (You need to parse the left of the #, like Left(Sys(0), At('#', Sys(0)) - 2)) or you can use Getenv("COMPUTERNAME") (at least in WIN XP), so your string would be [\\] + Getenv("COMPUTERNAME") + [\] + lcLocalPrinterName
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges