Skip to content

Instantly share code, notes, and snippets.

@kimgnu
Last active January 28, 2020 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimgnu/80a3bf6a59e214df395ef0d655f6d152 to your computer and use it in GitHub Desktop.
Save kimgnu/80a3bf6a59e214df395ef0d655f6d152 to your computer and use it in GitHub Desktop.
@echo off
setlocal
set OutputPrefix=AllData
set OutputFile="%OutputPrefix%.csv"
type nul > %OutputFile%
forfiles /s /c "cmd /c if @ext==\"csv\" if @file NEQ \"%OutputFile%\" for /f \"delims=\" %%L in ('type @file') do @echo %%L,@file,@fdate,@ftime >>\"%OutputFile%\""
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment