Run External Program While Printing
Hi,
Is it possible to run an external program with vbscript while printing?
-
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 -
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 -
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 <> "" ThenobjShell.Run "bartend.exe /af=" &LabelNameEnd If0
Please sign in to leave a comment.
Comments
3 comments