 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
waltor
Joined: 05 Feb 2008 Posts: 2 Country: Sweden |
|
Problems with FileFindFirst and *.* |
|
When I run this I get . and .. in return (just like DOS) and I dont want to set "found" to False because I want to stay in the loop and move the older files, any suggestions?
// Start file search
FileFindFirst( "D:\\JvsEdiSrv\\InBox\\*.*", file_name, found )
LoopWhile( found, END_LOOP )
ConCat( "D:\\JvsEdiSrv\\InBox\\", file_name, file_n)
FileDate( file_n, file_date )
IsGreater( file_date, yesterday, yes )
IfThen( yes, FIND_NEXT )
ConCat( "D:\\JvsEdiSrv\\InBox\\bup\\", file_name, file_n1)
FileMove( file_n, file_n1 )
FIND_NEXT:
// Find next file
FileFindNext( file_name, found )
END_LOOP:
|
|
Wed Apr 29, 2009 7:33 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7953
|
|
|
|
Please see Examples in the "DirEx" topic in the on-line help. Click the Examples button on the help-system toolbar when you are in this topic.
|
|
Wed Apr 29, 2009 9:27 am |
|
 |
waltor
Joined: 05 Feb 2008 Posts: 2 Country: Sweden |
|
|
|
Great, thanks a lot.
|
|
Thu Apr 30, 2009 2:56 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|