P
PW
Is there a way to do this ...
echo ^G > LPT1
.... from an HTML page ? or maybe an ASP ?
echo ^G > LPT1
.... from an HTML page ? or maybe an ASP ?
PW said:Is there a way to do this ...
echo ^G > LPT1
... from an HTML page ? or maybe an ASP ?
PW said:Is there a way to do this ...
echo ^G > LPT1
... from an HTML page ? or maybe an ASP ?
PW said:Is there a way to do this ...
echo ^G > LPT1
... from an HTML page ? or maybe an ASP ?
Richard said:No.
Why would you want to print the contents of the hard drive?
Mitja said:What does this control character do? If it's a page break, there's something
in css. If not, please describe it further.
PW said:This DOS command ... echo ^G > LPT1 ... will send a chr(7), or BEL
character to a receipt printer I have connected to the clients PC.
There is an electronic cash drawer connected to the receipt printer.
When the receipt printer receives a chr(7)/BEL character, it kicks
the cash drawer open.
I have tried sending chr(7) to the printer, but all it does is
actually print the little ASCII character, rather than ringing the
BELL and opening the drawer.
However, if I do exactly the same thing in DOS, the drawer opens
correctly.
Therefore I need to perform a wscipt.shell command or equivilent to
perform the DOS function. I have tried every variation of the
wscript.shell command, and it won't run either a DOS batch file or a
VBS script file.
I have scanned the web and this question is asked all over the place,
but no one seems to have a solution.
PW said:I wouldn't.
This DOS command ... echo ^G > LPT1 ... will send a chr(7), or BEL character
to a receipt printer I have connected to the clients PC. There is an
electronic cash drawer connected to the receipt printer. When the receipt
printer receives a chr(7)/BEL character, it kicks the cash drawer open.
I have tried sending chr(7) to the printer, but all it does is actually
print the little ASCII character, rather than ringing the BELL and opening
the drawer.
However, if I do exactly the same thing in DOS, the drawer opens correctly.
Therefore I need to perform a wscipt.shell command or equivilent to perform
the DOS function. I have tried every variation of the wscript.shell
command, and it won't run either a DOS batch file or a VBS script file.
I have scanned the web and this question is asked all over the place, but no
one seems to have a solution.
PW said:Is there a way to do this ...
echo ^G > LPT1
... from an HTML page ?
Toby A Inkster said:If the HTML page is hosted on a local web server (i.e. the cash
register thing is directly attached to the web server) then you
should be able to to this pretty easily with server-side scripting.
Mitja said:Um... a grocer selling pickles and running Apache?
PW said:Is there a way to do this ...
echo ^G > LPT1
.... from an HTML page ? or maybe an ASP ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.