EASY VB quesion for the VB gurus.

JackBurton

Lifer
Jul 18, 2000
15,993
14
81
Ok guys, I need to create a VB script that will give me the option to run and not run an exe file. For instance, I'd like it to say "Would you like to install such and such?" And depending on the answer, it will run an exe with a -s switch or if the person chooses "no," it will just end. I can do this with a batch file, but I want it to look cool. Also, I have NO idea how to code in VB, so little things like this, I have no idea where to start. Anyone here have a quick template that they can put up that I can go off?

Thanks!
 

agnitrate

Diamond Member
Jul 2, 2001
3,761
1
0
You don't need VB. Here is a program called AutoIt that will perform windows scripting. It's extremely easy to learn and I use just what you describe in my Windows installs to customize the machine.

Check it out here

-silver
 

SelArom

Senior member
Sep 28, 2004
872
0
0
www.djselarom.com
if you're using .NET you could use this
If (user wants to install blah blah) then
System.Diagnostics.Process.Start("c:\folder\blah.exe -s")
else
(do something else)
end if

I THINK that's correct. worth a try
 

JackBurton

Lifer
Jul 18, 2000
15,993
14
81
Originally posted by: agnitrate
You don't need VB. Here is a program called AutoIt that will perform windows scripting. It's extremely easy to learn and I use just what you describe in my Windows installs to customize the machine.

Check it out here

-silver
You're awesome man! THANKS!

Originally posted by: SelArom
if you're using .NET you could use this
If (user wants to install blah blah) then
System.Diagnostics.Process.Start("c:\folder\blah.exe -s")
else
(do something else)
end if

I THINK that's correct. worth a try
Thanks SelArom! I can always uses the VB code. As a matter of fact, I need to hit the books and study up on VB. A little VB never hurt anyone. :)