WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: bradleyjude on February 25, 2020, 07:11:01 AM

Title: running WBT file from another Winbatch script
Post by: bradleyjude on February 25, 2020, 07:11:01 AM
I have a master winbatch script that periodically checks for certain files to exist, depending on witch file is found, I want to open a specific wbt file.  Heres an example:
run("C:\Program Files\WinBatch\System\WinBatch.exe","C:\WinBatch_files\file1.wbt")
Any help would be appreciated.

Thanks!
Title: Re: running WBT file from another Winbatch script
Post by: kdmoyers on February 25, 2020, 07:15:06 AM
I'm guessing you get some kind of error?  Maybe post the error message.
Title: Re: running WBT file from another Winbatch script
Post by: bradleyjude on February 25, 2020, 07:44:43 AM
Sorry--the Error is 1932 WinExec: Function Failed
Title: Re: running WBT file from another Winbatch script
Post by: td on February 25, 2020, 09:39:45 AM
Error 1932 has many causes.  Often the error also produces additional error information that can be read by clicking on the "More Error Infor" button located on the error message dialog.  Of course, this assumes that you are not trying to debug your script with error reporting turned off...
Title: Re: running WBT file from another Winbatch script
Post by: bradleyjude on February 25, 2020, 10:04:30 AM
I used call("C:\WBT_2020\Menu v1.wbt","") to get it to run
Thanks!!