logoalt Hacker News

layer8 • today at 5:28 PM • 1 reply • view on HN

> This tiny batch script allowed for a poor man’s `touch` on Windows, which I used extensively from Windows NT to Windows 7. I typed `touch filename.txt` in the Total Commander mini-shell to quickly generate new, empty files.

This is funny to me, because I associate touch more with updating the timestamp of an existing file, and that script would miserably (destructively) be failing at that.


Replies

xp84 • today at 5:56 PM

yeah i get the utility for the 'making new file' use case, but aliasing this as touch if you're used to touch for both uses scares me!