Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!rutgers!cmcl2!brl-adm!brl-smoke!w8sdz From: w8sdz@brl-smoke.ARPA (Keith B. Petersen ) Newsgroups: comp.sys.ibm.pc Subject: Re: Shell command question Summary: Simple batch command to touch file Keywords: shell msdos autoexec.bat Message-ID: <8034@brl-smoke.ARPA> Date: 7 Jun 88 11:24:40 GMT References: <1102@cod.NOSC.MIL> <9301@iuvax.cs.indiana.edu> <22243@tis.llnl.gov> <1246@bingvaxu.cc.binghamton.edu> <1555@hoqax.UUCP> Reply-To: w8sdz@brl.arpa (Keith B. Petersen (WSMR|towson)) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 It is possible to "touch" a file using this simple batch file: copy %1/b,,+ %1 >nul It works. I use a public domain program called NFD (new file date) myself. It is written in assembly language, is very fast, and offers many useful features such as setting the date to something other than the current date. It can be interactive, asking for confirmation, or automatic - depending upon the command line option you choose. -- Keith Petersen Arpa: W8SDZ@SIMTEL20.ARPA Uucp: {bellcore,decwrl,harvard,lll-crg,ucbvax,uw-beaver}!simtel20.arpa!w8sdz GEnie: W8SDZ