Welcome! Log In Create A New Profile

Advanced

WinDev LPR (DOS) Function

Posted by erich45 
WinDev LPR (DOS) Function
March 30, 2021 04:39PM
Hello

My solution will not work:
For a exotic Labelprinter I have to send Binary data direct to the printer.
I do this creating a File with the data.
Then I create a DOS Batch file as follow:
Cmd is string = "c:\windows\system32\LPR.exe -S " + Computername + " -P " + Printername + " " + Filename + " -ol"
an write it to my disk: fSaveText("C:\Temp\Batch.bat", Cmd)

This Batch can I start manualy without any problems, it works.
But unfortunately I am not able to start the batch by WinDev
I tryed 'exerun', 'DDEstart' (DDEStart("C:\Temp\Batch.bat"))
whatever i try, it does'nt work

Anybody can help me ?

Thanks in advance
Erich
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: