PDA

View Full Version : Copy Files - Attributes


TracyP
02-08-2007, 02:51 PM
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

TracyP
02-08-2007, 02:54 PM
Would help if I put brackets [] around the script.