Skip to content

Instantly share code, notes, and snippets.

@nkundu
Forked from tjbarbour/touch.bat
Created February 19, 2018 18:38
Show Gist options
  • Save nkundu/3d0c770c76667f70114302e351b16966 to your computer and use it in GitHub Desktop.
Save nkundu/3d0c770c76667f70114302e351b16966 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