Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tiny command line utility msgbox.exe with timeout option

Featured Replies

Sintaxis

for 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 = OK

1 = OK + Cancel

2 = Abort + Retry + Igonore

3 = Yes + No + Cancel

4 = Yes + No

5 = Retry + Cancel

6 = Cancel + Retry + Continue

Icon:

16 Error

32 Question

48 Exclamation

64 Information

Here are the errorlevels returned:

0 Timed out

1 OK

2 Cancel

3 Abort

4 Retry

5 Ignore

6 Yes

7 No

11 Continue

You can also use %ERRORLEVEL% as environment variable, i.e.

if "%ERRORLEVEL%"=="5" goto :ignore

if "%ERRORLEVEL%"=="4" goto :retry

if "%ERRORLEVEL%"=="3" goto :abort

  • 1 year later...
  • 7 months later...

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.vbs

Set your timeout by changing the //T:5 value

Coding 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

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.