SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Problems with FileFindFirst and *.*

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Problems with FileFindFirst and *.*
Author Message
waltor



Joined: 05 Feb 2008
Posts: 2
Country: Sweden

Post Problems with FileFindFirst and *.* Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7954

Post Reply with quote
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 View user's profile Send private message
waltor



Joined: 05 Feb 2008
Posts: 2
Country: Sweden

Post Reply with quote
Great, thanks a lot.
Thu Apr 30, 2009 2:56 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.