Helen Pippard
New Member
- Joined
- Dec 12, 2008
- Messages
- 47
Hello
I was wondering if someone could help me with something
I need to be able to copy files and NOT replace them, and just add to the files each time
The files will always be aclled the same name, but the date modified will change each time and that is the part I know I need to concentrate on to get the file to copy and NOT replace the already existing file
At the moment what I have written below just replaces the file each time. How can I get the file to copy and not replace?
If FileDateTime("F:\Documents and Settings\user\My Documents\Query1.xls") >= FileDateTime("F:\Documents and Settings\user\My Documents\Misc\Query1.xls") Then fs.CopyFile "F:\Documents and Settings\user\My Documents\Query1.xls", "F:\Documents and Settings\user\My Documents\Misc\Query1.xls"
Any help or adavise would be very much apprecitated
Thanks
Helen
I was wondering if someone could help me with something
I need to be able to copy files and NOT replace them, and just add to the files each time
The files will always be aclled the same name, but the date modified will change each time and that is the part I know I need to concentrate on to get the file to copy and NOT replace the already existing file
At the moment what I have written below just replaces the file each time. How can I get the file to copy and not replace?
If FileDateTime("F:\Documents and Settings\user\My Documents\Query1.xls") >= FileDateTime("F:\Documents and Settings\user\My Documents\Misc\Query1.xls") Then fs.CopyFile "F:\Documents and Settings\user\My Documents\Query1.xls", "F:\Documents and Settings\user\My Documents\Misc\Query1.xls"
Any help or adavise would be very much apprecitated
Thanks
Helen