Make a y/n prompt for cscript.exe using VBS

Written by James McDonald

December 31, 2008

msg = "Do you wish to add " & First & " " & Last & "?"
	wscript.echo msg
	Wscript.StdOut.Write "Add Employee to DB? (y/n) "
        choice = Wscript.StdIn.ReadLine             ' read the input
	if choice = "y" or choice = "Y" then
	    ' do what you have to do ....
	end if

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

Toggen builds a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest...

WizTree

Just downloaded WizTree (not a sponsor) from https://wiztreefree.com/ It seems to do what it says on the tin which is...

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...