Hi everyone
From my command line I can echo to a driver called DIS1 so in the dos program would I use open to access that driver?
Echo works can I do it in a program?
Re: Echo works can I do it in a program?
Could you plse. elaborate (give more details) on what:
- the mentioned Driver is good for?
- what do you mean exactly, with "echo" (as in a *.bat file?)
- give any other useful information, you might have ...
Re: Echo works can I do it in a program?
ok I have a DOS Point of sale system and the Printer, Cash Drawer, scanner, Customer display are all controlled by drivers that are installed when the system boots.
Example
C:\4694\VFD-display.sys /NDIS1
The above loasd the driver to control the customer display and if i use the DOS command
I get on the Customer display Hello World.
so from the FreeBASIC app do I just use a system dump and drop this to the Command line to echo to the Driver or can I use Open "DIS1" For RANDOM as #CustomerDisplay to send commands etc to the display?
Example
C:\4694\VFD-display.sys /NDIS1
The above loasd the driver to control the customer display and if i use the DOS command
Code: Select all
Echo Hello World > DIS1
so from the FreeBASIC app do I just use a system dump and drop this to the Command line to echo to the Driver or can I use Open "DIS1" For RANDOM as #CustomerDisplay to send commands etc to the display?
Re: Echo works can I do it in a program?
Well, I don't think RANDOM is the correct Mode, try for OUTPUT ...Galea wrote:can I use Open "DIS1" For RANDOM as #CustomerDisplay to send commands etc to the display?
then use Print "whatever" (to Out...).
Otherwise use Shell, Exec, or similar Command to use CLI ...
Re: Echo works can I do it in a program?
so
would work in theory COOL I shall try and let you all know
so if I wanted to get data FROM the driver would it be RANDOM or Input?
Code: Select all
Open "DIS1" for Output as #CustomerDisplay"
Print #CustomerDisplay, "Welcome to the store"
close #CustomerDisplay
so if I wanted to get data FROM the driver would it be RANDOM or Input?
Re: Echo works can I do it in a program?
Simple: INPUTGablea wrote:so if I wanted to get data FROM the driver would it be RANDOM or Input?
Code: Select all
Open "DIS1" for Output as #CustomerDisplay" ' <<<< without "
Print #CustomerDisplay, "Welcome to the store"
close #CustomerDisplay
Code: Select all
Dim As Long CustomerDisplay = FreeFile