View Single Post
  #1  
Old 02-08-2007, 01:51 PM
TracyP TracyP is online now
Registered User
 
Join Date: 12-18-2006
Posts: 14
Copy Files - Attributes

I need to process a directory of files, some will need to be copied to one directory, and another and some are to be skipped. The second destination directory will not contain all the files the first destination or source directory will.

I would like to skip a file if the destination has an existing file with a more recent date than the source.

I started with Process Files, and using Copy Files I can copy any changed file through this loop. However, there is another process which changed the file attributes in the first destination directory to a set date and time stamp.

I feel pulling the LastModifiedDate from the first destination folder will work, and want to use this date in the MinModDate attribute.

I used this:
vbld_FSO.GetFile( "c:\temp\helloworld\%PROCFILES_FILENAME%" ).DateLastModified

it gives this error:
Error converting property 'MinModDate' (vbld_FSO.GetFile( "c:\temp\helloworld\frmmain.SCT" ).DateLastModified) to a date: Type mismatch.

Is there another way to handle this?

Thanks
Reply With Quote