Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2004
    Location
    Honolulu, HI USA
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exexecuting a windows command on a users computer

    Is there any way to execute dos commands on a users computer? I am trying to print data from a web based application to a receipt printer with only 40 characters per line and don't want to output the standard printout from MSIE. I know this sounds like a bad idea in theory for most users, but in this case it might be a necessity.

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    Set objShell = CreateObject("WScript.Shell")
    Set objScriptExec = objShell.exec("notepad.exe")
    Users will see a message saying something about ActiveX...

    Sadiq.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •