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.

Using Association to Pass Parameters

Keywords:  association passing parameters file associate 

You can associate a file type as you normally would by using File Associate except choose the WBT or WinBatch .EXE which launches the application instead.

To pass parameters, your code should look like:

        RunWait("Winword.exe", %param1%")
If a DOC file is clicked ON in the File Manager, the filename will be passed as param1.

To keep the application from failing when launched from an icon, add the following line above the run statement to define param 1:

        If Param0==0 then Param1=""


Article ID:   W13922
Filename:   Using Association to Pass Parameters.txt
File Created: 1999:04:15:16:57:18
Last Updated: 1999:04:15:16:57:18