Can Robotask do this...?

Discuss RoboTask here
Post Reply
maxfactoral
Posts: 1
Joined: Wed Nov 07, 2012 9:42 am
Location: Russian Federation

Can Robotask do this...?

Post by maxfactoral »

Hello! I work in IT of a company which has a number of regional branches. There is a constant flow of incoming files (archived with arj) from branches through VPN, but these files are for different departments of the company. Each Departmet has it's own idex number from 01,02,03...39 etc. All incoming files' name start with index numbers (to identify what department is it for) for example "01report.xls" or "23data.doc" and so on. Each time, I have to take these files and manually put them to it's department folder but before i had to create there subfolders 01\currentmonth(monthname)\currentday(date) and move the same files to archive folder\currentmonth(monthname)\currentday(date) I've tried to accomplish this with nncron and visual cron but l couldn't. Can Robotask handle this? please help! here is a scheme of actions
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Can Robotask do this...?

Post by Oleg »

Of course, RoboTask can do it. It have necessary actions and variables.
In order to monitor folder see File Monitor trigger
To determine root destination folder you should cut two symbols from beginning of file name. See STR Extract action.
To extract filename only from full file name see {ExtractFileName(<FullFileName>)} variable
To determine the current month subfolder look at the {MonthNo} variable
To determine the current day subfolder look at the {Day} variable
I don't see the Year subfolder. I think that you can use the name {Year}-{MonthNo} for month subfolder.

You have imaged quite detailed block schema, so you can easily create your task.

Also pay attention to Basic plugin. Maybe the usage of BASIC script is more comfortable for you.
You can find many additional examples of tasks here.
Post Reply