Page 1 of 1

How To Setup Task For Data Backup From Othr Win Programs

Posted: Thu Mar 21, 2013 6:09 pm
by pctdoug
I just downloaded the trial version of Robotask because it sounds like something I could definitely use... but when I went to try to set up a task, I got lost right away.


Which RoboTask action would I use to set up something like this...?
File >> Backup >> Browse-To-My-Backup-Folder >> Add-Date-2013-03-21-Prefix-To-File-Name >> Save

And can I set up that general sequence of actions for multiple programs in one RoboTask? Or do I need to create a separate RoboTask for each program that I want to back up each day... and then schedule them separately?

Thank you,
Doug

Re: How To Setup Task For Data Backup From Othr Win Programs

Posted: Thu Mar 21, 2013 6:54 pm
by Oleg
You should compose the task from actions.
Try this example (see below). Maybe this task will help you to understand how to create task
This task allows you to select folder to backup. The task packs all *.txt files and saves ZIP file into c:\backup folder as YYYY-MM-DD-hh-mm-folder.zip

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1638326490
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task309"
Hide=INTEGER|0
ID=INTEGER|1637322137
LogOnAsUser=INTEGER|1
Name=STRING|"Example of backup *.TXT files in selected folders"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER

[Actions\Action1]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""This task packs all *.txt files from selected folder and saves """
Params=FOLDER

[Actions\Action1\Params]
icon=STRING|"1"
msg0=STRING|"This task packs all *.txt files from selected folder and saves "
msg1=STRING|"them as YEAR-MONTH-DAY-HOURS-MIN-folder.zip "
msg2=STRING|"into c:\backup folder"
msgcount=STRING|"3"
playsound=STRING|"0"
showmessage=STRING|"1"

[Actions\Action2]
ActionID=STRING|"A_DIALOG_BROWSEFOLDERS"
Enabled=INTEGER|-1
Name=STRING|"Browse for Folders"
Params=FOLDER

[Actions\Action2\Params]
caption=STRING|"Select Folder to backup"
default=STRING|"None"
filter=STRING|"Text files|*.txt|All files|*.*|"
folder=STRING|"c:\"
variable=STRING|"SOURCE_FOLDER"

[Actions\Action3]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action3\Params]
case=STRING|"0"
operator=STRING|"1"
type=STRING|"0"
value1=STRING|"{Source_Folder}"
value2=STRING|"none"

[Actions\Action4]
ActionID=STRING|"A_FOLDER_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create Folder (c:\backup)"
Params=FOLDER

[Actions\Action4\Params]
newfolder=STRING|"c:\backup"

[Actions\Action5]
ActionID=STRING|"A_ZIP_PACK"
Enabled=INTEGER|-1
Name=STRING|"Pack Files"
Params=FOLDER

[Actions\Action5\Params]
action=STRING|"0"
coment0=STRING|"{DateTime}, {DayOfWeek}"
coment1=STRING|"This zip-archive created by RoboTask (C) 2003-2013 Neowise"
comentcount=STRING|"2"
compreslevel=STRING|"1"
destfile=STRING|"c:\backup\{Year}-{MonthNo}-{Day}-{Hours}-{Minutes}-{ExtractFileName({Source_folder})}.zip"
dosformat=STRING|"0"
file0=STRING|"{Source_Folder}\*.txt"
filecount=STRING|"1"
includesubfolders=STRING|"1"
incsysandhidden=STRING|"0"
junkdirnames=STRING|"0"
password=STRING|"2488926218257052468224681"
passwordmode=STRING|"0"

[Actions\Action6]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action7]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""backup """
Params=FOLDER

[Actions\Action7\Params]
ifnonzero=STRING|"0"
program=STRING|"c:\backup"
runas=STRING|"0"
wait=STRING|"0"
Save the text of the task into a file and use menu Task -> Import in order to import into RoboTask.
Next you can see the task in task editor.

Re: How To Setup Task For Data Backup From Othr Win Programs

Posted: Thu Mar 21, 2013 7:24 pm
by pctdoug
Thanks for the quick response Oleg.

I imported that task as you suggested but, unfortunately it did not really help me to set up my own task.

One of the programs I work with is http://www.thebrain.com/

What I need to do is...

Click on 'File' in the Top Toolbar of the Program >> Select 'CreateBrainZip' that shows in the Dropdown Menu >> Check An Option in The Dialog box that Pops Up >> Browse To where I want save the file on my hard drive >> And then Click OK

Re: How To Setup Task For Data Backup From Othr Win Programs

Posted: Thu Mar 21, 2013 8:00 pm
by Oleg
I have downloaded TheBain 7

Your task can be done by using simple keystrokes.
See my example below.
The task saves BRAINZIP file into default backup folder. I it's necessary I can send you another example which changes destination folder

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1638326490
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task317"
Hide=INTEGER|0
ID=INTEGER|1305308676
LogOnAsUser=INTEGER|1
Name=STRING|"Backup brain"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER

[Actions\Action1]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to ""TheBrain"""
Params=FOLDER

[Actions\Action1\Params]
currentwindow=STRING|"0"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"^(R)"
pause=STRING|"20"
release=STRING|"0"
sendkind=STRING|"0"
wincaption=STRING|"TheBrain"

[Actions\Action2]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1000 ms"
Params=FOLDER

[Actions\Action2\Params]
delay=STRING|"10"

[Actions\Action3]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER

[Actions\Action3\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"{HOME}{Year}-{MonthNo}-{Day}-{Hours}-{Minutes}-{Enter}"
pause=STRING|"20"
release=STRING|"0"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"