Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Batch File To Copy Docuements And Append Date


  • Please log in to reply

#1
magusbuckley

magusbuckley

    Member

  • Member
  • PipPipPip
  • 626 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