Hopefully someone here may be able to help. Is it possible to pass a second parameter into a batch file?
As you can see by the code below, 'theFirstParam' is a parameter with a string value that is being passed into a batch file. However, I would like to pass a second parameter into the batchfile as well.
So this is with one parameter (which works perfectly)
result = ShellExecute(hwnd, "open", "test.bat", theFirstParam, vbnullstring, 1)
but i want to pass a second parameter but the following statements don't work
First Attempt: (using plus sign)
result = ShellExecute(hwnd, "open", "test.bat", theFirstParam + theSecondParameter, vbnullstring, 1)
Second Attempt: (using '&')
result = ShellExecute(hwnd, "open", "test.bat", theFirstParam & theSecondParameter, vbnullstring, 1)
As you can see by the code below, 'theFirstParam' is a parameter with a string value that is being passed into a batch file. However, I would like to pass a second parameter into the batchfile as well.
So this is with one parameter (which works perfectly)
result = ShellExecute(hwnd, "open", "test.bat", theFirstParam, vbnullstring, 1)
but i want to pass a second parameter but the following statements don't work
First Attempt: (using plus sign)
result = ShellExecute(hwnd, "open", "test.bat", theFirstParam + theSecondParameter, vbnullstring, 1)
Second Attempt: (using '&')
result = ShellExecute(hwnd, "open", "test.bat", theFirstParam & theSecondParameter, vbnullstring, 1)