Skip to content

Instantly share code, notes, and snippets.

@AmauryVanEspen
Created December 7, 2019 05:07
Show Gist options
  • Save AmauryVanEspen/bf89b5722f2486b5582ae3cee4b205d7 to your computer and use it in GitHub Desktop.
Save AmauryVanEspen/bf89b5722f2486b5582ae3cee4b205d7 to your computer and use it in GitHub Desktop.
@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