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!
Who is Participating?
You can also use the MsgBox function which provides some basic button choices.

For anything more complicated you might want to create an HTA.
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...")


Shanmuga SundaramDirector of Software EngineeringCommented:
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
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...


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.
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.