Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Batch File To Copy Docuements And Append Date


  • Please log in to reply

#1
magusbuckley

magusbuckley

    Member

  • Member
  • PipPipPip
  • 625 posts
Hello:

I have some documents in a folder I'm trying to track. I'd like to be able to see changes on these files on a day to day basis. Is there a batch file I can write that would copy all the files of this folder and rename the files with the system date appended at the end.

If I could, this is the way it would look:

Original Folder

dbase.mdb
archive.doc

Then, each day, I'll run a batch file that will copy those two files and make them look like this:

New Folder For Copied Files

dbase_101006.mdb
archive_101006.mdb

On the second day, the folder would look like this:

New Folder For Copied Files

dbase_101006.mdb
archive_101006.mdb
dbase_101106.mdb
archive_101106.mdb

and so on and so forth.

I'll most likely put this batch file in the startup folder on my machine since I reboot every morning.

Can anyone help me? Any and all information will be greatly appreciated.

Thanks,

Magus
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP