Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
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?

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

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


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 04:30 PM.


Copyright © 1999-2023 Kinook Software, Inc.