Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem this will add the "test_" prefix to any .txt file
  2. rem created by TJS 04/02/18
  3.  
  4. setlocal
  5.  
  6. FOR %%F IN (*.txt) DO (
  7. set "fname=%%~F"
  8.     call ren "%%fname%%" "test_%%fname%%"
  9. )
  10.  
  11. CMD /K
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement