Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Copy Files - Attributes (https://www.kinook.com/Forum/showthread.php?t=2273)

TracyP 02-08-2007 01:51 PM

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

TracyP 02-08-2007 01:54 PM

Would help if I put brackets [] around the script.


All times are GMT -5. The time now is 05:16 PM.


Copyright © 1999-2023 Kinook Software, Inc.