Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Thread Tools Rate Thread Display Modes
Old 02-08-2007, 02: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?

Reply With Quote
Old 02-08-2007, 02:54 PM
TracyP TracyP is online now
Registered User
Join Date: 12-18-2006
Posts: 14

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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 03:23 PM.

Copyright 1999-2019 Kinook Software, Inc.