Skip to content

Instantly share code, notes, and snippets.

@0xABD 0xABD/bakts.bat
Created Sep 7, 2015

What would you like to do?
backup file "filename.ext" to "filename.ext.YYYYMMDDHHMISS.bak" using timestamp.exe
for /f %%a in ('timestamp.exe') do (set ts=%%a)
copy /V "%1" "%1.%ts%.bak"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.