Skip to content

Instantly share code, notes, and snippets.

@digitalfun
Last active December 13, 2022 09:12
Show Gist options
  • Save digitalfun/11a469ad920b135994e23ecb4f3661d1 to your computer and use it in GitHub Desktop.
Save digitalfun/11a469ad920b135994e23ecb4f3661d1 to your computer and use it in GitHub Desktop.
[Batch] Touch.bat
REM Update date/timestamp of file in positional argument 1.
REM Syntax: `touch.bat <filename>`
REM Example: `touch.bat "C:\any path\my file.ext"`
@COPY /B %1+,, %1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment