Greetings !
I have a package where it imports data into a Excel spreadsheet. Now, I need to move this spreadsheet after creating the folders (based on package run date) like Year - > MonthName - > DayNumber - > Excel spreadsheet. So, if I run my package today (09/07/2013), I have to create folder structure like
2013 (this is main folder)
September (this is sub folder)
07 (this is sub sub folder)
ExcelSpreadsheet (move the spreadsheet in 07 folder).
If I run the package tomorrow, the spreadsheet should be moved to 08 folder (after creation). So,
2013 (this is main folder)
September (this is sub folder)
08 (this is sub sub folder)
ExcelSpreadsheet (move the spreadsheet in 08 folder).
In the above case, I need not create 2013, September folders since those already existed and so I need to create 08 folder.
Similary, if I run this package next month on 21st, then I need to create like
2013 (this is main folder)
October (this is sub folder)
21 (this is sub sub folder)
ExcelSpreadsheet (move the spreadsheet in 08 folder).
Any ideas how to accomplish this task ?
Many thanks!