Created
December 7, 2019 05:07
-
-
Save AmauryVanEspen/bf89b5722f2486b5582ae3cee4b205d7 to your computer and use it in GitHub Desktop.
This file contains 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 filedate=%DATE% | |
set filedate=%filedate:~6,4%%filedate:~3,2%%filedate:~0,2% | |
setlocal enableextensions enabledelayedexpansion | |
for /r %%f in (*.txt) do ( | |
set filename=%%~nxf | |
ren *.txt "%filedate%_NU_LCC-INTELKD-IAQ-OSINT-!filename: =-!" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment