I've got a CMD file that writes a MsgBox popup command to a VBScript file, then turns around and immediately executes it. Originally it just used an "OK" button to dismiss the warning that user version was out of date. I want to modify it to use the Yes/No/Cancel buttons to allow user automatic version update.
Here is the code that just causes the pop-up. I've tried a few different things to try to get the .vbs file to return a value, but am having issues getting the syntax right. Any suggestions?
@echo X=MsgBox("Your Version: %VER%" +vbCrLf+ "Recommended: %RVER%" +vbCrLf+ "Do you want to update the version?",vbYesNoCancel,"Warning Message"^) >%APPDATA%\temp_msg2.vbs
call %APPDATA%\temp_msg2.vbs
Thanks!