WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Winbatch Studio
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Pass Parms to WBT while in WB Studio.txt

Keywords:   param0 parameters WInBatch Studio Commandline Command line  

Question:

Can I pass parameters to my script in WinBatch Studio, or do I have to compile it each time, and run it from the command line, with the parameters?

Answer:

When debugging in Winbatch Studio you cannot pass parameters to the script.

However this is a workaround

Add these lines to the top of the script, debug it, no need remove them, because this code will only execute when run in WinBatch Studio.

if rtStatus()==10
  cmdline="-a -b 123 your command line -f"
  ParseData(cmdline)
endif

Article ID:   W14372
Filename:   Pass Parms to WBT while in WB Studio.txt
File Created: 2001:01:09:09:29:40
Last Updated: 2001:01:09:09:29:40