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

Variables and Parameters

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

How to Pass Parameters

Keywords:      param0 parameters

Parameters are passed into a WBT file as param1, param2, param3, etc. param0 contains the total number of parameters.

To pass parameters from Program Manager, or Explorer's Start Run:

        c:\winbatch\wbat16i.exe c:\script\mybatch.wbt fred 1234 
where fred and 1234 are parameters.

To pass parameters using the Run function in a WinBatch script:

If a WBT file is run as follows the parameter(s) don't get passed to the program:
        Run("TEST.WBT", "stuff")
Use this method instead:
	run("c:\winbatch\system\winbatch.exe","c:\script\mybatch.wbt fred 1234")
or, if WinBatch is in the path:
	Run("WINBATCH.EXE", "TEST.WBT stuff")

Question:

The command line entry on our NT4 server to start jobs (documented) in Oracle Applications concurrent manager is:
	e:\> concsub 
	APPS/APPS \
	SYSADMIN \
	"\"System Administrator\"" \
	SYSADMIN \
	WAIT=N \
	CONCURRENT \
	FNDSCARU \
	FNDSCARU
where lines 2 to 8 comprise 9 parameters which must be passed to the executable
e:\applr_107\fnd\6.1\bin\concsub.exe
The .wbt file which has these parameters in quotes, comma seperated within the RUN cammand does not work. Any ideas ?

Answer:

My guess is:
	DaExe="e:\applr_107\fnd\6.1\bin\concsub.exe"

	DaParams=`APPS/APPS SYSADMIN "System Administrator" SYSADMIN WAIT=N CONCURRENT FNDSCARU FNDSCARU`

	Run(DaExe,DaParams)

Article ID:   W13913
Filename:   Passing Parameters .txt
File Created: 1999:08:05:10:38:36
Last Updated: 1999:08:05:10:38:36