Copy file and timestamp it

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Stev379 (stev379_at_comcast.net)
Date: 03/18/04


Date: Wed, 17 Mar 2004 20:42:59 -0800

Hello,
  I have a file (file.log) on the C: drive that needs a
script to copy it to a mapped network drive. The file
records errors and may need to copied to the network drive
multiple times. When the application that file.log
records errors for crashes, and the user restarts it,
file.log overwrites itself and starts clean. When the
script copies file.log to the network, I need it to rename
file.log with a unique name each time so it's not
overwritten. How can I create a unique filename each time
my script copies the file to the network?

Thanks



Relevant Pages

  • Timestamp file from local machine/save to network
    ... records errors for crashes, and the user restarts it, ... file.log overwrites itself and starts clean. ... script copies file.log to the network, ... How can I create a unique filename each time ...
    (microsoft.public.windows.server.scripting)
  • Re: Password Last Reset
    ... Hilltop Lab - http://www.rlmueller.net ... Basically another script calls this script, ... It overwrites the ... I need it to append to the ...
    (microsoft.public.scripting.vbscript)
  • Re: document.write call position
    ... it overwrites the entire page (as document.write does when the ... Is there a way to tell where in the DOM the document.write is located ... Since the `script' element that is required to include the statement has to ... Prototype.js was written by people who don't know javascript for people ...
    (comp.lang.javascript)
  • Cleandisk : a utility to wipe unused disk space
    ... Havent used but located script to wipedisk ... # This is a little shell script to wipe disk space ... # overwrite all unused disk space without risking ... MSG="You must specify a number of overwrites. ...
    (AIX-L)
  • Re: Password Last Reset
    ... Basically another script calls this script, ... It overwrites the ... ensure no conflict with other objects, like users or groups, since ... sAMAccountName must be unique in the domain. ...
    (microsoft.public.scripting.vbscript)