Yatch Posted September 12, 2009 Share Posted September 12, 2009 Sintaxisfor print time add "in %%d"If you run msgbox from other program, use only one percent sign %d (like printf())"<Message>" "<Title>" "<Flag #1-5>" "<seconds>"for non timeout use in seconds "0" Flags:You may combine following box styles:0 = OK1 = OK + Cancel2 = Abort + Retry + Igonore3 = Yes + No + Cancel4 = Yes + No5 = Retry + Cancel6 = Cancel + Retry + ContinueIcon:16 Error32 Question48 Exclamation64 InformationHere are the errorlevels returned:0 Timed out1 OK2 Cancel3 Abort4 Retry5 Ignore6 Yes7 No11 ContinueYou can also use %ERRORLEVEL% as environment variable, i.e.if "%ERRORLEVEL%"=="5" goto :ignoreif "%ERRORLEVEL%"=="4" goto :retryif "%ERRORLEVEL%"=="3" goto :abort Link to comment Share on other sites More sharing options...
war59312 Posted June 14, 2011 Share Posted June 14, 2011 Anyone got something like this that works on Win7 x64? Link to comment Share on other sites More sharing options...
trucknut1999 Posted January 28, 2012 Share Posted January 28, 2012 Anyone got something like this that works on Win7 x64?Here's a simple one line command that can be used inside a batch file. No problems with Win7 x64.echo msgbox"my important message",64,"Some Import Title"> a.vbs & cscript a.vbs //T:5 & del a.vbsSet your timeout by changing the //T:5 valueCoding References: MsgBox: http://www.w3schools.com/vbscript/func_msgbox.asp CScript: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cscript_overview.mspx?mfr=true Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now