Renaming a File

Discuss RoboTask here
Post Reply
Cobra
Posts: 2
Joined: Fri Jun 20, 2008 6:42 am

Renaming a File

Post by Cobra »

Many thanks for the help!However, I am still confused about printing.My scenario is I have daily logs that are saved each day and of course incremented with the current days date.Can I have RoboTask find the current days file and print it?Again, any help is extremely grateful.Hi all - This may be a simple one to most of you but I just don't get it. I need to copy a file abc.pdf to another location with the prefix (CurrentDate)abc.pdfI am also looking to print all files in a directory with the "Current Date". Any help will be greatly appreciated!~ Cobra ;
Last edited by Cobra on Mon Jun 23, 2008 2:33 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Renaming a File

Post by Oleg »

I think that you have to make moving in two steps
1. Renaming
2. Moving the file to anothe location

Renaming
specify the source file - abc.pdf
specify destination name - {year}{monthno}{day}abc.pdf

RoboTask renames file to 20080620abc.pdf today

Regarding printing.
RoboTask doesn't print documents directly. It uses the default application for document kind. You may print documents by using the file loop, like this:

File loop by *.pdf in specified folder
   print current document
end loop
Cobra
Posts: 2
Joined: Fri Jun 20, 2008 6:42 am

Renaming a File

Post by Cobra »

Many thanks for the help!However, I am still confused about printing.My scenario is I have daily logs that are saved each day and of course incremented with the current days date.Can I have RoboTask find the current days file and print it?Again, any help is extremely grateful.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Renaming a File

Post by Oleg »

What is format of your log file name?

Also you can select the file within file loop. See the date filter of the loop.
Post Reply