Writing a script

Latest post 11-24-2009 1:33 PM by glamontagne. 3 replies.

Writing a script

11-24-2009 12:37 PM

Is there a script I can write that would copy a file and rename it to a different location on a daily basis?

The copied file is a backup file and changes name on a daily basis as well.

Re: Writing a script

11-24-2009 1:22 PM

Yes.

In Windows, you can use a batch file, VBScript, or (if it's installed on your system) Powershell to automate the copying.

Then, create a scheduled task to run the script as needed.

Re: Writing a script

11-24-2009 1:26 PM

forgot the rest...

If you give some details (or hypotheticals), we could help you with the script.

Re: Writing a script

11-24-2009 1:33 PM

I accomplish something like this using a batch file.  I set it up to copy the contents of a paranoid user's my documents folder.  The batch file doesn't rename anything but I bet it wouldn't be too hard to add that syntax.  As djanke said, a little more information and we'd practically be able to help write it for you.