Skip to main content

Search

Search

Run External Program While Printing

Comments

3 comments

  • Avatar
    Fernando Ramos Miracle

    Hello yon,

     

    Could please offer some more details on what exactly you are trying to achieve?

     

    Note that through VB script you could very well start the execution of a separate application... but not sure if this exactly what you wish to do.

     

    Also note that with the use of Commander you will have available an "Operation System command" type which also allows you to run system commands when printing.

     

    Regards.

    0
  • Avatar
    Legacy Poster

    I don't have commander, I searched online and got this: Set oShell = WScript.CreateObject("WSCript.shell")

    oShell.run "cmd cd /d C:dir_test\file_test & sanity_check_env.bat arg1", I tried putting it into vbscript, and got an error.

     

    Can you maybe give me a example of how I would open notepad?

     

    Thanks a lot

    0
  • Avatar
    Domingo Rodriguez
    Moderator

    The following is from an old example I have on how to run open another document within BarTender. Perhaps this helps:

     

    Functions and Subs

     

    Set objShell = CreateObject("Wscript.Shell")

     

     

     

    OnPrintStart

     

    If LabelName <> "" Then
        objShell.Run "bartend.exe /af=" &LabelName
    End If
    0

Please sign in to leave a comment.