passing variables

Discuss RoboTask here
Post Reply
Naras
Posts: 10
Joined: Thu Dec 20, 2012 3:39 pm

passing variables

Post by Naras »

I've got a series of files in a folder like so20121018-06474673-15f0-1.txt20121018-06474673-15f0-2.txt20121018-06474673-15f0-2.txtI've set my variable "SENTFILELIST" to value "20121018-06474673-15f0-1"I want to use that variable  in  a file loop to find the correct file so I can parse it. Not sure what I am doing wrong. The variable "SENTFILELIST" will be a global variable.Str pos doesn't indicate that the file is found.Thoughts*********CODE*********************;*****************************;* RoboTask Task file;* Do not edit in text editor!;***************************** [Root]ActionAfterRun=INTEGER|0Actions=FOLDERAutomat=INTEGER|-1CatID=INTEGER|0Comment=STRINGLISTContinueOnError=INTEGER|0ExternalName=STRING|"Task229"Hide=INTEGER|0ID=INTEGER|1024996200LogOnAsUser=INTEGER|1Name=STRING|"Copy of My File Loop"OnErrorTaskID=INTEGER|0Priority=INTEGER|3RunOnClose=INTEGER|0RunOnStartup=INTEGER|0ToLog=INTEGER|3WriteGeneralLog=INTEGER|0[Actions]Action1=FOLDERAction2=FOLDERAction3=FOLDERAction4=FOLDERAction5=FOLDER[Actions\Action1]ActionID=STRING|"A_VARIABLES_SET"Enabled=INTEGER|-1Name=STRING|"Set variable ""SENTFILELIST"" with value ""20121018-06474673-15f0-0"""Params=FOLDER[Actions\Action1\Params]expand=STRING|"0"varname=STRING|"SENTFILELIST"varvalue=STRING|"20121018-06474673-15f0-0"[Actions\Action2]ActionID=STRING|"A_LOOP_FILE"Enabled=INTEGER|-1Name=STRING|"File Loop"Params=FOLDER[Actions\Action2\Params]createmode=STRING|"1"date1=STRING|"20130122"date2=STRING|"20130122"destvar=STRING|"C_LIST"DuringDays=STRING|"1"DuringHours=STRING|"1"DuringMinutes=STRING|"1"DuringMonths=STRING|"1"file0=STRING|"C:\Users\Stephens\Documents\Email Logs\Sent\*.*"filecount=STRING|"2"OlderDays=STRING|"1"OlderHours=STRING|"1"OlderMinutes=STRING|"1"OlderMonths=STRING|"1"savesize=STRING|"0"searchkind=STRING|"0"subdirs=STRING|"1"timesize=STRING|"0"WithoutPath=STRING|"0"[Actions\Action3]ActionID=STRING|"A_STR_POS"Enabled=INTEGER|-1Name=STRING|"STR Pos"Params=FOLDER[Actions\Action3\Params]case=STRING|"0"from=STRING|"1"search=STRING|"{SENTFILELIST}"source=STRING|"{C_LSIT}"variable=STRING|"now"[Actions\Action4]ActionID=STRING|"A_DIALOG_MESSAGE"Enabled=INTEGER|-1Name=STRING|"Show ""Variable value to pass {SENTFILELIST}"""Params=FOLDER[Actions\Action4\Params]icon=STRING|"1"msg0=STRING|"Variable value to pass {SENTFILELIST}"msg2=STRING|"current line in the folder{C_LIST} "msg4=STRING|"position of string {now}"msgcount=STRING|"5"playsound=STRING|"0"showmessage=STRING|"1"[Actions\Action5]ActionID=STRING|"A_LOOP_END"Enabled=INTEGER|-1Name=STRING|"End Loop"
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

passing variables

Post by Oleg »

Look at the step #3
You wrote {C_LSIT}. You have to write {C_LIST} instead.
Post Reply