Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't print directly to LPT1
Message
 
À
24/06/1997 19:02:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00037511
Message ID:
00037647
Vues:
32
> >>I am trying to print a text file directly to the LPT1 port > >>using the COPY TO command, and I am receiving > >>"Invalid path or filename", why? > >>I do this: > >>COPY FILE MyText.txt TO LPT1 > > You can call a batch file that prints the file passed as a parameter such > as: > > @ECHO OFF > COPY %1 LPT1 Depending on the contents of the file, you may want to change this to: COPY /B %1 LPT1 You may also want to delete this file after you're done. The final result is: @ECHO OFF COPY /B %1 LPT1 ERASE %1 EXIT (the last line forces the DOS window to close, even if the .PIF properties are incorrectly set).
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform