|
Answer» can i create a msgbox which asks something like
Do you like cheese
Yes No
if no then :no if yes then :yes
:no echo how could it be goto end
:yes echo great ! goto endBatch is a non-GUI (graphic user INTERFACE). That means it doesn't do message boxes. I suggest using a VBS ALTERNATIVE. WELL then how can i make it with a vbs script ?One each message box coming up:
Code: [Select]rc = MsgBox("Do you like cheese?", vbYesNo, "My Message Box") If rc = 6 Then WScript.Echo "Great !" If rc = 7 Then WScript.Echo "How could it be?"
Save snippet with a vbs extension and run from the command prompt as cscript scriptname.vbs
The NT msg command only OFFERS an OK button.
Good luck.
|