Launching exe from script
I have have a utility that I am trying to launch from vbscript that has several Inf files associated with it. Depending on a combination of checkboxes selected I'm trying to make the utility run with a certain Inf file/files.
For example if box 1 and 3 are checked, run util.exe /i file1.inf /i file3.inf.
If boxes 2,3 and 4 are checked run util.exe /i fle2.inf /i file3.inf /i file4.inf
Thanks,
Steve
For example if box 1 and 3 are checked, run util.exe /i file1.inf /i file3.inf.
If boxes 2,3 and 4 are checked run util.exe /i fle2.inf /i file3.inf /i file4.inf
Thanks,
Steve
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
brenthunter2005
19 years ago
Posted by:
knc42
19 years ago
Posted by:
brenthunter2005
19 years ago
OK, does the following code give you any ideas?
strRawCommand = "C:\Tool\util.exe"
If checkbox1.checked = true then strAddCmd = " /i file1.inf"
If checkbox2.checked = true then strAddCmd = strAddCmd & " /i file2.inf"
If checkbox3.checked = true then strAddCmd = strAddCmd & " /i file3.inf"
If checkbox4.checked = true then strAddCmd = strAddCmd & " /i file4.inf"
strFinalCommand = strRawCommand & strAddCmd
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.