Skip to content

Instantly share code, notes, and snippets.

@cjwinchester
Created April 13, 2015 16:41
Show Gist options
  • Save cjwinchester/85c723e3c0d4bd17f1ca to your computer and use it in GitHub Desktop.
Save cjwinchester/85c723e3c0d4bd17f1ca to your computer and use it in GitHub Desktop.
The batch file I use to create new story files/folders locally.
@echo off
set /p slug="Enter slug: " %=%
set /p dateslug="Enter rundate (YYYY-MM-DD): " %=%
set slug=%slug: =-%
(echo. && echo. && echo ===================== && echo slug: %slug% && echo rundate: %dateslug% ) >> C:\Users\cwinchester\Desktop\print\notes-master.txt
cd C:\Users\cwinchester\Desktop\print
mkdir %dateslug%-%slug%
cd %dateslug%-%slug%
touch %dateslug%-%slug%.txt
%SystemRoot%\explorer.exe C:\Users\cwinchester\Desktop\print\%dateslug%-%slug%
cd ../..
start notepad++.exe C:\Users\cwinchester\Desktop\print\notes-master.txt -n9999999999999999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment