#113661 - 2004-02-09 04:16 PM
Get date modified
|
Shaz
Lurker
Registered: 2004-02-09
Posts: 3
|
Hi, I'm new to kix and was wondering if someone could point me in the right direction. I need to write a script which asks the user for a date and the searches a directory for files modified on the same date or day before. Once found these files need to me copied to another directory.
|
|
Top
|
|
|
|
#113663 - 2004-02-09 04:44 PM
Re: Get date modified
|
Shaz
Lurker
Registered: 2004-02-09
Posts: 3
|
The date is not in the file name, is there any function to read the file properties???
|
|
Top
|
|
|
|
#113666 - 2004-02-09 05:09 PM
Re: Get date modified
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
I think what you are looking for is something to read a log for example. Look into the use of READLINE.. Or, if an INI file, READPROFILESTRING (easier to use, BTW).
Kent
|
|
Top
|
|
|
|
#113667 - 2004-02-09 07:37 PM
Re: Get date modified
|
Shaz
Lurker
Registered: 2004-02-09
Posts: 3
|
Thats great guys,
Any idea how to go about checking if the date returned is older than X hours?
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1247 anonymous users online.
|
|
|