Skip to content

Instantly share code, notes, and snippets.

@tjbarbour
Last active February 19, 2018 18:38
Show Gist options
  • Save tjbarbour/6356774 to your computer and use it in GitHub Desktop.
Save tjbarbour/6356774 to your computer and use it in GitHub Desktop.
touch.bat Works like bash "touch" command that just updates a file's date modified time. Taken from: http://stackoverflow.com/a/923927/37207 and http://stackoverflow.com/a/659672/37207
@echo OFF
REM Need to be in current directory to touch file
pushd %~dp1
copy /b %1 +,,
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment