Create a VBS file which prompts for information

I am wondering if anyone has some sample code or sample files on how to create a vbscript which can prompt a user to enter some information and then the vbscript could use those responses to perform some automated tasks.

Ideally, I would like to bring up a form where the user can select information using checkboxes and/or radio buttons. Then I could use some IF statements in a vbscript to perform some automated tasks based on the user's responses.

Thank you for your help!
bisselltechsAsked:
Who is Participating?
 
Shift-3Commented:
You can also use the MsgBox function which provides some basic button choices.
http://www.w3schools.com/vbscript/func_msgbox.asp

For anything more complicated you might want to create an HTA.
http://www.microsoft.com/technet/scriptcenter/hubs/htas.mspx
http://msdn.microsoft.com/en-us/library/ms536496(VS.85).aspx
0
 
Wayne Taylor (webtubbs)Commented:
Hi bisselltechs,

You can't use Comboboxes or RadioButtons, but you can provide an InputBox, where the user can enter text....

    Dim s
    s = Inputbox("Enter something...")

Regards,

Wayne
0
 
Shanmuga SundaramDirector of Software EngineeringCommented:
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Shanmuga SundaramDirector of Software EngineeringCommented:
I forget to mention that you should use vbscript inside html
0
 
RobSampsonCommented:
A HTA would probably suit best, but the more combination of options you need, to more complicated the logic of the page will get.....

If you define some ideas of your options and logic, we can build a prototype for you...

Regards,

Rob.
0
 
bisselltechsAuthor Commented:
The two links at the bottom helped get me going in the right direction. Using those links I was able to create an HTA form that is working as intended.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.