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

by | Dec 31, 2008 | IT Tips, Microsoft Tech Tips | 0 comments

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 *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.