Print to one virtual printer to output to one of two physical printers using conditional format on Terminal Server name
I would like to setup a redirection printer so that our staff who work from one of two sites, whom print out the same type of document at each site but due to driver issues and a nasty MIS program it doesn't always print successfully to individual printers.
I would like to setup a printer that then prints to one of the two desired printers. Needs to be conditioned to MachineName, but not knowing much VBS I don't think I am putting in the right formula, been looking at similar requests on here and used MachineName = "SERVERNAME"
Can anyone help with a fix?
23rd Aug 2007
Carl,
You could try using InStr which is case insensitive, try
InStr(MachineName, "SERVERNAME", 1) > 0
Also it's worth checking the log when entering conditions, any problems will log an error.
23rd Aug 2007
Thank you for that, sorry I have been away on holiday, I have tried your string and replaced "SERVERNAME" with appropriate computer name, I assume within the "".
I checked the Error log and have got this message
Error parsing script text in .\common.cpp at 2058
Your help is much appreciated
4th Sep 2007
Sorry my mistake, try:
InStr(1, MachineName, "SERVERNAME", 1) > 0
4th Sep 2007