Just learned XCOPY doesn't do what I want - the resolution of "newness" it
reckognizes is 1 day or more.
Leon: What's rsync?
In the meantime guess I'll try looking at DIR...
Roger
On Thu, Aug 7, 2008 at 4:53 PM, Roger Levy <roger.levy_at_gmail.com> wrote:
> Everyone, thanks for the suggestions.
>
> I was hoping to be able to do it in a semi-portable way. Shold've
> mentioned that.
>
> I think that the simplest might be using a shell command, since the process
> should translate to equivalent Mac and Linux commands ... (I hope???)
>
> Roger
>
>
> On Thu, Aug 7, 2008 at 11:47 AM, Charles Melice <3d_at_forthcad.com> wrote:
>
>> Hi Roger,
>>
>> You know probably that the XCOPY.EXE command line do that for free...
>>
>> Charles
>>
>> -----Message d'origine-----
>> De : sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com] De la part
>> de
>> Roger Levy
>> Envoyé : jeudi 7 août 2008 16:55
>> À : sftalk_at_forth.com
>> Objet : [sftalk] Search for file / Check file properties
>>
>>
>> Hi All,
>> I wanted to implement an automatic resource-update facility, but I'm not
>> sure how to do it in SwiftForth, or where to find out.
>>
>> I would like to be able to search for a file in a source directory and see
>> if we need to copy it to a target directory.
>>
>> If the source file is found,
>>
>> 1. If it doesn't exist in the target directory, copy it and exit.
>>
>> 2. If it exists in the target directory and the source file is newer than
>> the target file, copy it and exit.
>>
>> 3. Else do nothing and exit.
>>
>>
>> Mostly I was just wondering what are the commands to use to 1.) find a
>> file
>> in a directory and 2.) check its Last Modified attribute.
>>
>> Roger
>>
>>
>> ----------------------------------------------------------------------
>> sftalk_at_forth.com The SwiftForth programming discussion email list
>> To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.comFor
>> list command help, send subject "help" to sftalk-request_at_forth.comMessage
>> archives are located at http://www.forth.com/archive/sftalk
>> ----------------------------------------------------------------------
>> This list is a forum for SwiftForth users. For product support and bug
>> reports, please send email to support_at_forth.com
>> ----------------------------------------------------------------------
>>
>>
>> ----------------------------------------------------------------------
>> sftalk_at_forth.com The SwiftForth programming discussion email list
>> To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
>> For list command help, send subject "help" to sftalk-request_at_forth.com
>> Message archives are located at http://www.forth.com/archive/sftalk
>> ----------------------------------------------------------------------
>> This list is a forum for SwiftForth users. For product support and
>> bug reports, please send email to support_at_forth.com
>> ----------------------------------------------------------------------
>>
>>
>
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu Aug 07 2008 - 14:23:52 PDT
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.