Skip to content

A command line tool to flash the window via FlashConsoleEx WinAPI call

License

Notifications You must be signed in to change notification settings

UweKeim/console-flasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Console Flasher

A small command line tool to flash the console window via the FlashConsoleEx Windows API call.

I'm using this tool heavily inside my own build scripts (which are CMD batch files) to signal myself if a build script fails.

By flashing the CMD window I can do other things during long running build scripts and do not have to constantly monitor the running build processes.

Example usage

This is an example of a "build.cmd" batch script I'm using the tool with:

PUSHD 
CD /d %~dp0 

SET CSSCRIPT_DIR=\\build-server\tools\cs-script

"\\build-server\tools\cs-script\cscs.exe" /dbg "%~dp0\do-build.cs" %*
if %ERRORLEVEL% GEQ 1 "\\build-server\tools\console-flasher.exe" & EXIT /B %ERRORLEVEL%

POPD 
EXIT /B 0

The above script calls the actual build script (which is a CS-Script script in my case) and if the build exists with an error, the console window is flashed.

About

A command line tool to flash the window via FlashConsoleEx WinAPI call

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages