Create a VBS file which prompts for information

Posted on 2008-11-07
Medium Priority
Last Modified: 2012-08-13
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!
Question by:bisselltechs
LVL 48

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 22905362
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...")


LVL 17

Expert Comment

by:Shanmuga Sundaram
ID: 22906044
LVL 38

Accepted Solution

Shift-3 earned 2000 total points
ID: 22906055
You can also use the MsgBox function which provides some basic button choices.

For anything more complicated you might want to create an HTA.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 17

Expert Comment

by:Shanmuga Sundaram
ID: 22906070
I forget to mention that you should use vbscript inside html
LVL 65

Expert Comment

ID: 22911460
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...



Author Closing Comment

ID: 31514395
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.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question