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


Submit a Comment

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

You May Also Like…

PC Build

I recently built myself a PC using the SilverStone SG13 Case. I am planning to use it as a Hot Spare. So any client...