Hi people.
i use a basic print jobs re-direction software that uses the copy command to copy print jobs across printer queues. so i wish to ask how can i check the status of a port of any local/network printer.
e.g. in the case of the network printer
the network printer was initially shared as 'PrinterA', so the port of the printer when i 'Add printer' in my PC will be sth like '\\PCXXX\PrinterA'
but if someone over at 'PCXXX' accidentally stops sharing or changed the shared name of the shared Printer, the print queue in my PC won't automatically detect the change, and when the software tries to send a file through the old '\\PCXXX\PrinterA' port, disaster starts.
how can i detect and update(if possible) the status and shared name of the shared/local printer in codes...
thanks in advance
i use a basic print jobs re-direction software that uses the copy command to copy print jobs across printer queues. so i wish to ask how can i check the status of a port of any local/network printer.
e.g. in the case of the network printer
the network printer was initially shared as 'PrinterA', so the port of the printer when i 'Add printer' in my PC will be sth like '\\PCXXX\PrinterA'
but if someone over at 'PCXXX' accidentally stops sharing or changed the shared name of the shared Printer, the print queue in my PC won't automatically detect the change, and when the software tries to send a file through the old '\\PCXXX\PrinterA' port, disaster starts.
how can i detect and update(if possible) the status and shared name of the shared/local printer in codes...
thanks in advance