Skip to content

Instantly share code, notes, and snippets.

@ijprest
Created September 15, 2011 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ijprest/1218432 to your computer and use it in GitHub Desktop.
Save ijprest/1218432 to your computer and use it in GitHub Desktop.
CMD Batch file to put a separator between each command you run at the prompt
@echo off
for /f "tokens=1,2 delims=: " %%Q IN ('mode con:') DO IF "%%Q"=="Columns" SET _COLS=%%R
SET /A _COLS=%_COLS% - 13
SET _P=
:loop
SET _P=%_P%-
SET /A _COLS=%_COLS% - 1
IF %_COLS% GTR 0 goto :loop
SET PROMPT=%_P%$S$T$_$P$G
@ijprest
Copy link
Author

ijprest commented Sep 15, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment