#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Posts
    7
    Rep Power
    0

    VBScript to send DOS print command


    I'm attempting to print to a Zebra printer (barcode) by taking the results of an .asp page and sending the output to the Zebra printer, which will interpret the output / embedded Zebra Program Language (ZPL). Thus, printing the output at runtime.

    Does anyone know how to send a dos command with a vbscript from an .asp page that will send the .asp result output to a notepad file then send the notepad file to the printer at run-time?

    I tried a few scripts, but nothing worked.

    thanks!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2003
    Location
    No es importante
    Posts
    2,065
    Rep Power
    14
    Have you tried using the Window Script Host commands? Here is some code that should get you own your way:
    http://armbrustconsulting.com/forums/viewtopic.php?t=13

IMN logo majestic logo threadwatch logo seochat tools logo