SiamIT
Well-known member
- Joined
- Aug 3, 2021
- Messages
- 53
- Programming Experience
- 5-10
Greetings..
here is the issue with the printer.. i (my client) is facing..
Say i have printer, setup and connected with the following name:
MY_BEST_Printer
The issue comes in when I unplug the USB cable and after some time plug, it back in it windows adds a new duplicate copy of the same printer.
MY_BEST_Printer (Copy 1)
And if I keep plugging and unplugging it keeps adding new duplicates.
MY_BEST_Printer (Copy 1)
MY_BEST_Printer (Copy 2)
MY_BEST_Printer (Copy 3)
and as few important app is setup to use the default printer name, so, when end user print using those app, it doesn't print anything as that printer is not the connected on, may be the copy 1 or copy N is connected/active one ..
so? my task is to create a script so that, it can handle the duplicate issue so that the printing from those application works fine..
WHAT I HAVE TRIED?
i have tried.. following.. using WMI service/functions
my script periodically checks for new copy (x) printer, if it found then delete the default/main printer and rename the copy - 1 to Base Name. But that does not solve the problem.
so, i am looking for a better idea that can work ?
i have looked into few Virtual Printer Driver, but that also seems not to have what i need for this purpose..
what i need is when user send print command to "MY_BEST_Printer" and if currently connected printer is duplicated at "MY_BEST_Printer (Copy - 3)" it will redirect/forward the print job to copy -3 named printer.
i think it will not be hard to handle, as both printer is same.. just forwarding the spool file or print job would be suffice?
but question is how? as i don't know how to do that
Note: Please don't suggest to say end user just to change the printer name form the app. As those app are kiosk app and not settings is available to end users. Only admins can change.
any help will be highly appreciated
thanks in advance
here is the issue with the printer.. i (my client) is facing..
Say i have printer, setup and connected with the following name:
MY_BEST_Printer
The issue comes in when I unplug the USB cable and after some time plug, it back in it windows adds a new duplicate copy of the same printer.
MY_BEST_Printer (Copy 1)
And if I keep plugging and unplugging it keeps adding new duplicates.
MY_BEST_Printer (Copy 1)
MY_BEST_Printer (Copy 2)
MY_BEST_Printer (Copy 3)
and as few important app is setup to use the default printer name, so, when end user print using those app, it doesn't print anything as that printer is not the connected on, may be the copy 1 or copy N is connected/active one ..
so? my task is to create a script so that, it can handle the duplicate issue so that the printing from those application works fine..
WHAT I HAVE TRIED?
i have tried.. following.. using WMI service/functions
my script periodically checks for new copy (x) printer, if it found then delete the default/main printer and rename the copy - 1 to Base Name. But that does not solve the problem.
so, i am looking for a better idea that can work ?
i have looked into few Virtual Printer Driver, but that also seems not to have what i need for this purpose..
what i need is when user send print command to "MY_BEST_Printer" and if currently connected printer is duplicated at "MY_BEST_Printer (Copy - 3)" it will redirect/forward the print job to copy -3 named printer.
i think it will not be hard to handle, as both printer is same.. just forwarding the spool file or print job would be suffice?
but question is how? as i don't know how to do that
Note: Please don't suggest to say end user just to change the printer name form the app. As those app are kiosk app and not settings is available to end users. Only admins can change.
any help will be highly appreciated
thanks in advance