Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print ascii file ???
Message
From
27/09/1997 02:07:14
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00041223
Message ID:
00051943
Views:
42
>>>where PRINTFIL.BAT contains:
>>>
>>>@echo off
>>>copy /b %1 lpt1
>>>erase %1
>>>exit
>>>
>>>This copies the file, in binary mode (bypassing any Chr(26)s that it
>>>sees) to the LPT1 port. You can substitute any valid port for this.
>>
>>Does this work with com ports also? I need to send control code out
>>the
>>com ports.
>
>I haven't tried it with serial ports, but I can't see why it wouldn't
>work. I've copied other things to plotters (which always seem to be
>attached serially), and they've worked without a hitch.
>
>>Also, is there a way to run the dos in the background
>>without
>>the big black ugly screen showing up? I tried setting the props in
>>the
>>foxrun.pif to a minimized window, but no luck!
>
>I've also found no way to completely remove this from the screen.
>However, by using WinExec() instead of !, the time is minimized as much
>as possible.
>
>/Paul

There is a way.
Through Foxpro run the batch file normally. When execution finishes, click on the close button, properties and click the checkbox, Close on exit.
Then through code use the following command:
Run /N2

N2 runs the file Minimized. After execution, it closes and you do not see anything.

Abdul Ahad
Abdul Ahad Khan
CSi
www.csi-pk.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform