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: W13922Filename: Using Association to Pass Parameters.txt