hello, i've been searching a lot of functions on xharbour and fivewin, but i didn't found one to discover if my printer is offline.
someone can help me??
thanks,
Caio Richetti
hello, i've been searching a lot of functions on xharbour and fivewin, but i didn't found one to discover if my printer is offline.
someone can help me??
thanks,
Caio Richetti
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
  & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = Â objWMIService.ExecQuery _
  ("Select * from Win32_Printer Where PrinterStatus = '1' " _
    & "or PrinterStatus = '2'")
If colInstalledPrinters.Count = 0 Then
  Wscript.Echo "All printers are functioning correctly."
Else
  For Each objPrinter in colInstalledPrinters
    Wscript.Echo "Printer " & objprinter.Name & " is not responding."
  Next
End IfDear All,
Samples\PrnStat.prg.
Does it work with Print Server or Shared Printer?
Thanks in advance,