Language: MSCmdSHell
Simple batch file that works like touch command in unix
@echo off if (%1)==() goto end if not exist %1 goto createEmpty :touch copy /b %1+ > nul echo %1 was touched! goto end :createEmpty type %1>%1 echo %1 was created! :end
Tags:
Description:
Will update the timestamp on the specified filed.
NOTE: Will creates a zero-length file if specified file is not found.
NOTE: Will creates a zero-length file if specified file is not found.
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

