Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Good way to capture printer port from within VFP
I need to do the equivalent of a NET USE command to capture output to a printer port to a network printer.
I have been using Ed Rauh's APIRun class to issue a dos command to do this...which works fine on my 2000 box, but hangs on the win98 boxes, as the net command does not terminate...sits there in the 'Finished' state.
I know I can do this by setting up a PIF file on each worstation for the net.exe command, but there are a LOT of workstations.
Is there a cleaner way to capture the port? Barring that, is there a way I can make the dos windows exit witout going around to each machine and setting up that PIF?
TIA
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement