Run External Program While Printing 追蹤

0
Avatar
Legacy Poster

Hi,

 

Is it possible to run an external program with vbscript while printing?

3 意見

0
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
版主
評論操作 永久連結

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

登入寫評論。