Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with button that launches bat file with input variables.

Hi, I experience a small problem when trying to launch a .bat file with a button. The problem is with the input I provide the bat file is stored in a variable (var1) which is set by the same button (see attachment). Even though var1 is set to '1 2 3' before launching the .bat file I must press the button twice before the correct values (1 2 3) are passed on to the .bat file. It seems that the variable must have the desired value before i click the button that launches the .bat file. 

To have the buttons in the attached qvw Work, You must ceate a .bat file and place it in the same folder that you place the qvw file. The bat file contains:

set vInput1=%1
set vInput2=%2
set vInput3=%3
pause

1 Reply
Not applicable
Author

Sorry - Forgot to attach.