Hi All,
How to execute TYPE <FILENAME> > PRN (This is required for dumping some .txt file into specific old barcode printer)
BTW, I tried with EXECUTE command, but may be due to some syntactical error I couldn't do it.
I tried with the command,
EXECUTE OPERATION "EDIT <FILENAME>"
and
EXECUTE FILE "EDIT <FILENAME>" WAIT
But following command runs ok
EXECUTE FILE "NOTEPAD.EXE <FILENAME>" WAIT
Thanks in advance.
With best regards.
Sudip
How to execute "Type <filename> > prn"
Moderator: Rathinagiri
How to execute "Type <filename> > prn"
With best regards,
Sudip
Sudip
- dhaine_adp
- Posts: 457
- Joined: Wed Aug 06, 2008 12:22 pm
- Location: Manila, Philippines
Re: How to execute "Type <filename> > prn"
Hi Sudip,How to execute TYPE <FILENAME> > PRN (This is required for dumping some .txt file into specific old barcode printer)
Have you tried something like this:
Code: Select all
function DumpFile( cFile )
PRIVATE cDosCommand := ""
cDosCommand := "/c TYPE " + cFile + " > PRN"
EXECUTE FILE "CMD.EXE" PARAMETERS cDosCommand HIDE
RETURN NIL
I hope that helps (but I didn't test that piece of code I posted, it's just merely a suggestion).
Regards,
Danny
Regards,
Danny
Manila, Philippines
Danny
Manila, Philippines
Re: How to execute "Type <filename> > prn"
Hi Danny,
Thanks a lot!!! It works
With best regards.
Sudip
Thanks a lot!!! It works
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
With best regards.
Sudip
With best regards,
Sudip
Sudip
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: How to execute "Type <filename> > prn"
Interesting to know. ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.