"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:uM*************@TK2MSFTNGP12.phx.gbl...
<%CreateObject("WScript.Shell").Run "%comspec /c copy C:\*.txt D:\" %>
See here:
http://msdn.microsoft.com/library/en...l/wsmthrun.asp
I can't see anything happening.
Heres what I'm trying to do ...
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.