Newby Question

Discuss RoboTask here
Post Reply
Recalljay
Posts: 1
Joined: Wed Sep 22, 2004 3:27 am

Newby Question

Post by Recalljay »

Newby just starting out
I am trying to create a task which moves all files within a whole years filedate into a subdirectory of that year
i.e all 2003 files to be moved into a 2003 subdirectory.
I have managed to make most of the search and movement stuff work.
As it stands the task always creates the year subdirectory, even if there are no files to move.
What sort of IF statements should I use to check if any files exist within the daterange and then either quit or create the Directory and then carry on and move the files
Also I want the task to loop back to the start again, until such time as I have done all the moving I want todo
 
 
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Newby Question

Post by Oleg »

You can do the following:
1. Using "search for files" action create file list
2. Do a text loop (on created text)
3. Inside loop do
   - create folder 2003
   - move file into this folder

So if the file list contain at least one line folder "2003" will be created, otherwise not.
Post Reply