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…

How to Research a CPU Upgrade

How to Research a CPU Upgrade

Upgrade Time! Doing a lot of VMWare Workstation virtualization to create labs for self-study and training. Finding...