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
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
"What ya talkin' 'bout knc42?"

Whats these checkboxes all about? Is it an ASP page or something else?
Answered 10/11/2005 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
0
It's an HTA file that will run the Windows USMT utility.
The checkboxes give the user options to backup system files, user files, app settings or any combination. Based on what that check USMT will run and backup their settings by using the various Inf files.

Thanks,
Steve
Answered 10/11/2005 by: knc42
Senior Yellow Belt

Please log in to comment
0
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
Answered 10/11/2005 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
0
That helped.

Thanks.
Answered 10/12/2005 by: knc42
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity