/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (4)

Posted by: brenthunter2005 18 years ago
Fifth Degree Brown Belt
0
"What ya talkin' 'bout knc42?"

Whats these checkboxes all about? Is it an ASP page or something else?
Posted by: knc42 18 years ago
Senior Yellow Belt
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
Posted by: brenthunter2005 18 years ago
Fifth Degree Brown Belt
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
Posted by: knc42 18 years ago
Senior Yellow Belt
0
That helped.

Thanks.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ