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

Launching WinBatch and Other Apps
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 two lines to the top of the script, debug it, then remove them prior to the production compile.

If rtStatus==10; if running in WinBatch studio
  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:17:12:29:06
Last Updated: 2001:01:17:12:29:06