Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: pGetPrtList
Request Meaning 0 Printer names 1 Printer information, in the form: printer-name|port-name|driver-name|printer-share-UNC Note: "printer-share-UNC" is the same value that's returned by pGetDefPrtInf(4).
Here is some code that may be of help...
AddExtender("WWPRT34I.DLL") filetocopy="C:\autoexec.bat" printers = pGetPrtList(1) info=AskItemList("Printers", printers, @tab, @sorted, @single) SharePath=ItemExtract(4,info,"|") FileCopy(filetocopy,sharepath,0) message("Printed","%filetocopy% to %SharePath%")
Article ID: W14437
Filename: pGetPrtList and FileCopy.txt
File Created: 2001:03:01:15:38:46
Last Updated: 2001:03:01:15:38:46