A unix-type "touch" command for windows.

  • Thread starter Thread starter zram
  • Start date Start date
Z

zram

is there a command in windows/command processer that
creates a file from one command like the unix "touch"
command?
 
zram said:
is there a command in windows/command processer that
creates a file from one command like the unix "touch"
command?

No idea what you mean by "creates a file from one command" in the case of
touch since IIRC "touch" is used to modify file dates but in any case, there
may be something that will work for you. You might start with
http://www.codeproject.com/tools/touch_win.asp to see if it does what you
want/need. Otherwise, just go to google as I did and search for "windows
touch command" and see what else pops up.
--
John McGaw
[Knoxville, TN, USA]

Return address will not work. Please
reply in group or through my website:
http://johnmcgaw.com
 
-----Original Message-----
is there a command in windows/command processer that
creates a file from one command like the unix "touch"
command?

No idea what you mean by "creates a file from one command" in the case of
touch since IIRC "touch" is used to modify file dates but in any case, there
may be something that will work for you. You might start with
http://www.codeproject.com/tools/touch_win.asp to see if it does what you
want/need. Otherwise, just go to google as I did and search for "windows
touch command" and see what else pops up.
--
John McGaw
[Knoxville, TN, USA]

Return address will not work. Please
reply in group or through my website:
http://johnmcgaw.com


Thanks, the program on codeproject will do the trick.
 
John said:
No idea what you mean by "creates a file from one command" in the case of
touch since IIRC "touch" is used to modify file dates but in any case, there
may be something that will work for you.

In Unix "touch filename" will create a file of that name if one does not
already exist. Otherwise you are correct.

You might start with

Good call :)

Steve
 
Steve Nielsen said:
In Unix "touch filename" will create a file of that name if one does not
already exist. Otherwise you are correct.

You might start with

Good call :)

Steve
Learn something every day I guess. I was a Unix sysadmin (of sorts) for some
years and wrote a lot of shell scripts that did a lot of odd things but
never used touch except for the date changing effect.
--
John McGaw
[Knoxville, TN, USA]

Return address will not work. Please
reply in group or through my website:
http://johnmcgaw.com
 
Back
Top