Created
          July 16, 2012 16:33 
        
      - 
      
- 
        Save tt/3123644 to your computer and use it in GitHub Desktop. 
    Self-modifying batch file
  
        
  
    
      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
    
  
  
    
  | You can use this for all sorts of crazy. It seems it will continue at the exact character position where it left, so you can both prepend and append stuff while it's running. | 
  
    
      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 | |
| echo Hello | |
| echo echo World >> hello.bat | 
  
    
      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
    
  
  
    
  | Hello | |
| World | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment