Created
          April 13, 2015 16:41 
        
      - 
      
 - 
        
Save cjwinchester/85c723e3c0d4bd17f1ca to your computer and use it in GitHub Desktop.  
    The batch file I use to create new story files/folders locally.
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @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