Hi
is it possible to count al files in a folder ?
Then 1 after an other move them to a different folder (but only when it is completely empty, so there can only be one file at a time in this folder)
I will move this files my self. Then when when this folder is empty again, move the next to this different folder?
regard richard
move one at a time
move one at a time
See task below. This task calculates number of files and total size in specified folder.
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|840229289
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task31"
Hide=INTEGER|0
ID=INTEGER|501984439
Name=STRING|"Folder Info Demo"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|2
[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action13=FOLDER
Action14=FOLDER
Action15=FOLDER
Action16=FOLDER
Action17=FOLDER
Action18=FOLDER
Action19=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER
[Actions\Action1]
ActionID=STRING|"A_ROBOTASK_MINIMIZE"
Enabled=INTEGER|-1
Name=STRING|"Minimize RoboTask"
[Actions\Action10]
ActionID=STRING|"A_VARIABLES_INCREMENT"
Enabled=INTEGER|-1
Name=STRING|"Increment variable ""F_Count"""
Params=FOLDER
[Actions\Action10\Params]
incement=STRING|"1"
vaiable=STRING|"F_Count"
[Actions\Action11]
ActionID=STRING|"A_VARIABLES_INCREMENT"
Enabled=INTEGER|-1
Name=STRING|"Increment variable ""Total_Size"""
Params=FOLDER
[Actions\Action11\Params]
incement=STRING|"{FileSize}"
vaiable=STRING|"Total_Size"
[Actions\Action12]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Actions\Action13]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""Folder ""{SELECTEDFOLDER}"" contains {F_COUNT} files."""
Params=FOLDER
[Actions\Action13\Params]
icon=STRING|"1"
msg0=STRING|"Folder ""{SELECTEDFOLDER}"" contains {F_COUNT} files."
msg1=STRING|"Total size is {TOTAL_SIZE} bytes"
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action14]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Actions\Action15]
ActionID=STRING|"A_ROBOTASK_RESTORE"
Enabled=INTEGER|-1
Name=STRING|"Restore RoboTask"
[Actions\Action16]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""F_COUNT"""
Params=FOLDER
[Actions\Action16\Params]
varname=STRING|"F_COUNT"
[Actions\Action17]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""TOTAL_SIZE"""
Params=FOLDER
[Actions\Action17\Params]
varname=STRING|"TOTAL_SIZE"
[Actions\Action18]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""FLENAME"""
Params=FOLDER
[Actions\Action18\Params]
varname=STRING|"FLENAME"
[Actions\Action19]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""FILESIZE"""
Params=FOLDER
[Actions\Action19\Params]
varname=STRING|"FILESIZE"
[Actions\Action2]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""This task calculates number of files and """
Params=FOLDER
[Actions\Action2\Params]
icon=STRING|"1"
msg0=STRING|"This task calculates number of files and "
msg1=STRING|"total size of specified folder."
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_DIALOG_BROWSEFOLDERS"
Enabled=INTEGER|-1
Name=STRING|"Browse for Folders"
Params=FOLDER
[Actions\Action3\Params]
caption=STRING|"Select Folder"
default=STRING|"None"
filter=STRING|"Text files|*.txt|All files|*.*|"
folder=STRING|"{TempDir}"
variable=STRING|"SELECTEDFOLDER"
[Actions\Action4]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action4\Params]
case=STRING|"0"
operator=STRING|"0"
type=STRING|"0"
value1=STRING|"{SELECTEDFOLDER}"
value2=STRING|"None"
[Actions\Action5]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""[{Time}, {DayOfWeek}, {Date}]"""
Params=FOLDER
[Actions\Action5\Params]
icon=STRING|"1"
msg0=STRING|"[{Time}, {DayOfWeek}, {Date}]"
msg1=STRING|"No Folder is Selected"
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action6]
ActionID=STRING|"A_FLOW_ELSE"
Enabled=INTEGER|-1
Name=STRING|"Else"
[Actions\Action7]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set varible ""F_COUNT"" with value ""0"""
Params=FOLDER
[Actions\Action7\Params]
varname=STRING|"F_COUNT"
varvalue=STRING|"0"
[Actions\Action8]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set varible ""TOTAL_SIZE"" with value ""0"""
Params=FOLDER
[Actions\Action8\Params]
varname=STRING|"TOTAL_SIZE"
varvalue=STRING|"0"
[Actions\Action9]
ActionID=STRING|"A_LOOP_FILE"
Enabled=INTEGER|-1
Name=STRING|"File Loop"
Params=FOLDER
[Actions\Action9\Params]
createmode=STRING|"1"
date1=STRING|"20040323"
date2=STRING|"20040323"
destvar=STRING|"FILENAME"
DuringDays=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"{SELECTEDFOLDER}\*.*"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderMonths=STRING|"1"
savesize=STRING|"1"
savevar=STRING|"FILESIZE"
subdirs=STRING|"1"
timesize=STRING|"0"
WithoutPath=STRING|"0"
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|840229289
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task31"
Hide=INTEGER|0
ID=INTEGER|501984439
Name=STRING|"Folder Info Demo"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|2
[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action13=FOLDER
Action14=FOLDER
Action15=FOLDER
Action16=FOLDER
Action17=FOLDER
Action18=FOLDER
Action19=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER
[Actions\Action1]
ActionID=STRING|"A_ROBOTASK_MINIMIZE"
Enabled=INTEGER|-1
Name=STRING|"Minimize RoboTask"
[Actions\Action10]
ActionID=STRING|"A_VARIABLES_INCREMENT"
Enabled=INTEGER|-1
Name=STRING|"Increment variable ""F_Count"""
Params=FOLDER
[Actions\Action10\Params]
incement=STRING|"1"
vaiable=STRING|"F_Count"
[Actions\Action11]
ActionID=STRING|"A_VARIABLES_INCREMENT"
Enabled=INTEGER|-1
Name=STRING|"Increment variable ""Total_Size"""
Params=FOLDER
[Actions\Action11\Params]
incement=STRING|"{FileSize}"
vaiable=STRING|"Total_Size"
[Actions\Action12]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Actions\Action13]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""Folder ""{SELECTEDFOLDER}"" contains {F_COUNT} files."""
Params=FOLDER
[Actions\Action13\Params]
icon=STRING|"1"
msg0=STRING|"Folder ""{SELECTEDFOLDER}"" contains {F_COUNT} files."
msg1=STRING|"Total size is {TOTAL_SIZE} bytes"
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action14]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Actions\Action15]
ActionID=STRING|"A_ROBOTASK_RESTORE"
Enabled=INTEGER|-1
Name=STRING|"Restore RoboTask"
[Actions\Action16]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""F_COUNT"""
Params=FOLDER
[Actions\Action16\Params]
varname=STRING|"F_COUNT"
[Actions\Action17]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""TOTAL_SIZE"""
Params=FOLDER
[Actions\Action17\Params]
varname=STRING|"TOTAL_SIZE"
[Actions\Action18]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""FLENAME"""
Params=FOLDER
[Actions\Action18\Params]
varname=STRING|"FLENAME"
[Actions\Action19]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""FILESIZE"""
Params=FOLDER
[Actions\Action19\Params]
varname=STRING|"FILESIZE"
[Actions\Action2]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""This task calculates number of files and """
Params=FOLDER
[Actions\Action2\Params]
icon=STRING|"1"
msg0=STRING|"This task calculates number of files and "
msg1=STRING|"total size of specified folder."
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_DIALOG_BROWSEFOLDERS"
Enabled=INTEGER|-1
Name=STRING|"Browse for Folders"
Params=FOLDER
[Actions\Action3\Params]
caption=STRING|"Select Folder"
default=STRING|"None"
filter=STRING|"Text files|*.txt|All files|*.*|"
folder=STRING|"{TempDir}"
variable=STRING|"SELECTEDFOLDER"
[Actions\Action4]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action4\Params]
case=STRING|"0"
operator=STRING|"0"
type=STRING|"0"
value1=STRING|"{SELECTEDFOLDER}"
value2=STRING|"None"
[Actions\Action5]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""[{Time}, {DayOfWeek}, {Date}]"""
Params=FOLDER
[Actions\Action5\Params]
icon=STRING|"1"
msg0=STRING|"[{Time}, {DayOfWeek}, {Date}]"
msg1=STRING|"No Folder is Selected"
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action6]
ActionID=STRING|"A_FLOW_ELSE"
Enabled=INTEGER|-1
Name=STRING|"Else"
[Actions\Action7]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set varible ""F_COUNT"" with value ""0"""
Params=FOLDER
[Actions\Action7\Params]
varname=STRING|"F_COUNT"
varvalue=STRING|"0"
[Actions\Action8]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set varible ""TOTAL_SIZE"" with value ""0"""
Params=FOLDER
[Actions\Action8\Params]
varname=STRING|"TOTAL_SIZE"
varvalue=STRING|"0"
[Actions\Action9]
ActionID=STRING|"A_LOOP_FILE"
Enabled=INTEGER|-1
Name=STRING|"File Loop"
Params=FOLDER
[Actions\Action9\Params]
createmode=STRING|"1"
date1=STRING|"20040323"
date2=STRING|"20040323"
destvar=STRING|"FILENAME"
DuringDays=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"{SELECTEDFOLDER}\*.*"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderMonths=STRING|"1"
savesize=STRING|"1"
savevar=STRING|"FILESIZE"
subdirs=STRING|"1"
timesize=STRING|"0"
WithoutPath=STRING|"0"
move one at a time
hi oleg
i made this myself
this is perfect for me and i made it for the example "find latest/newest modified file"
the only problem is it only works with the newest files and i want the oldest files first
if you got the time take a look at this
file structuur is D:\robotask\recieve and D:\robotask\teller
and it only works with *.mov
THANKS richard
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|0
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task3"
Hide=INTEGER|0
ID=INTEGER|1043014426
Name=STRING|"nieuwste file in folder"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action13=FOLDER
Action14=FOLDER
Action15=FOLDER
Action16=FOLDER
Action17=FOLDER
Action18=FOLDER
Action19=FOLDER
Action2=FOLDER
Action20=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER
[Actions\Action1]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action1\Params]
case=STRING|"0"
operator=STRING|"1"
type=STRING|"3"
value1=STRING|"{FileExists(D:\robotask\teller\*.mov)}"
[Actions\Action10]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""LATEST_DATETIME"" with value ""{CURRENT_DATETIME}"""
Params=FOLDER
[Actions\Action10\Params]
expand=STRING|"1"
varname=STRING|"LATEST_DATETIME"
varvalue=STRING|"{CURRENT_DATETIME}"
[Actions\Action11]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Actions\Action12]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Actions\Action13]
ActionID=STRING|"A_FILE_COPY"
Enabled=INTEGER|-1
Name=STRING|"Copy/Move File"
Params=FOLDER
[Actions\Action13\Params]
destdir=STRING|"D:\robotask\teller"
f_count=STRING|"1"
file0=STRING|"{LATEST_FILENAME}"
ifexists=STRING|"1"
move=STRING|"1"
subdir=STRING|"0"
[Actions\Action14]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""Folder: RECIEVE"""
Params=FOLDER
[Actions\Action14\Params]
icon=STRING|"1"
msg0=STRING|"Folder: RECIEVE"
msg1=STRING|"Latest file: {LATEST_FILENAME}"
msg2=STRING|"Modified: {LATEST_DATETIME}"
msgcount=STRING|"3"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action15]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""CURRENT_FOLDER"""
Params=FOLDER
[Actions\Action15\Params]
varname=STRING|"CURRENT_FOLDER"
[Actions\Action16]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""CURRENT_FILE"""
Params=FOLDER
[Actions\Action16\Params]
varname=STRING|"CURRENT_FILE"
[Actions\Action17]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""LATEST_DATETIME"""
Params=FOLDER
[Actions\Action17\Params]
varname=STRING|"LATEST_DATETIME"
[Actions\Action18]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""LATEST_FILENAME"""
Params=FOLDER
[Actions\Action18\Params]
varname=STRING|"LATEST_FILENAME"
[Actions\Action19]
ActionID=STRING|"A_LOOP_BREAK"
Enabled=INTEGER|-1
Name=STRING|"Break"
[Actions\Action2]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create variable ""LATEST_FILENAME"" with value ""Not Found"""
Params=FOLDER
[Actions\Action2\Params]
expand=STRING|"0"
varname=STRING|"LATEST_FILENAME"
varvalue=STRING|"Not Found"
[Actions\Action20]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Actions\Action3]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create variable ""LATEST_DATETIME"" with value ""0"""
Params=FOLDER
[Actions\Action3\Params]
expand=STRING|"0"
varname=STRING|"LATEST_DATETIME"
varvalue=STRING|"0"
[Actions\Action4]
ActionID=STRING|"A_LOOP_FILE"
Enabled=INTEGER|-1
Name=STRING|"File Loop"
Params=FOLDER
[Actions\Action4\Params]
createmode=STRING|"1"
date1=STRING|"20040520"
date2=STRING|"20040520"
destvar=STRING|"CURRENT_FILENAME"
DuringDays=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"D:\robotask\recieve\*.mov"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderMonths=STRING|"1"
savesize=STRING|"0"
subdirs=STRING|"1"
timesize=STRING|"1"
timevar=STRING|"CURRENT_DATETIME"
WithoutPath=STRING|"0"
[Actions\Action5]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action5\Params]
message=STRING|"Current DateTime {CURRENT_DATETIME}"
type=STRING|"0"
[Actions\Action6]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action6\Params]
message=STRING|"Latest DateTime {LATEST_DATETIME}"
type=STRING|"0"
[Actions\Action7]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action7\Params]
case=STRING|"0"
operator=STRING|"3"
type=STRING|"2"
value1=STRING|"{CURRENT_DATETIME}"
value2=STRING|"{LATEST_DATETIME}"
[Actions\Action8]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action8\Params]
message=STRING|"CURRENT_DATETIME {CURRENT_DATETIME} > LATEST_DATETIME {LATEST_DATETIME}"
type=STRING|"0"
[Actions\Action9]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""LATEST_FILENAME"" with value ""{CURRENT_FILENAME}"""
Params=FOLDER
[Actions\Action9\Params]
expand=STRING|"1"
varname=STRING|"LATEST_FILENAME"
varvalue=STRING|"{CURRENT_FILENAME}"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_CYCLIC"
Params=FOLDER
[Events\Event1\Params]
id=STRING|"IV17E3HT"
interval=STRING|"10"
i made this myself
this is perfect for me and i made it for the example "find latest/newest modified file"
the only problem is it only works with the newest files and i want the oldest files first
if you got the time take a look at this
file structuur is D:\robotask\recieve and D:\robotask\teller
and it only works with *.mov
THANKS richard
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|0
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task3"
Hide=INTEGER|0
ID=INTEGER|1043014426
Name=STRING|"nieuwste file in folder"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action13=FOLDER
Action14=FOLDER
Action15=FOLDER
Action16=FOLDER
Action17=FOLDER
Action18=FOLDER
Action19=FOLDER
Action2=FOLDER
Action20=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER
[Actions\Action1]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action1\Params]
case=STRING|"0"
operator=STRING|"1"
type=STRING|"3"
value1=STRING|"{FileExists(D:\robotask\teller\*.mov)}"
[Actions\Action10]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""LATEST_DATETIME"" with value ""{CURRENT_DATETIME}"""
Params=FOLDER
[Actions\Action10\Params]
expand=STRING|"1"
varname=STRING|"LATEST_DATETIME"
varvalue=STRING|"{CURRENT_DATETIME}"
[Actions\Action11]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Actions\Action12]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Actions\Action13]
ActionID=STRING|"A_FILE_COPY"
Enabled=INTEGER|-1
Name=STRING|"Copy/Move File"
Params=FOLDER
[Actions\Action13\Params]
destdir=STRING|"D:\robotask\teller"
f_count=STRING|"1"
file0=STRING|"{LATEST_FILENAME}"
ifexists=STRING|"1"
move=STRING|"1"
subdir=STRING|"0"
[Actions\Action14]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""Folder: RECIEVE"""
Params=FOLDER
[Actions\Action14\Params]
icon=STRING|"1"
msg0=STRING|"Folder: RECIEVE"
msg1=STRING|"Latest file: {LATEST_FILENAME}"
msg2=STRING|"Modified: {LATEST_DATETIME}"
msgcount=STRING|"3"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action15]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""CURRENT_FOLDER"""
Params=FOLDER
[Actions\Action15\Params]
varname=STRING|"CURRENT_FOLDER"
[Actions\Action16]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""CURRENT_FILE"""
Params=FOLDER
[Actions\Action16\Params]
varname=STRING|"CURRENT_FILE"
[Actions\Action17]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""LATEST_DATETIME"""
Params=FOLDER
[Actions\Action17\Params]
varname=STRING|"LATEST_DATETIME"
[Actions\Action18]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""LATEST_FILENAME"""
Params=FOLDER
[Actions\Action18\Params]
varname=STRING|"LATEST_FILENAME"
[Actions\Action19]
ActionID=STRING|"A_LOOP_BREAK"
Enabled=INTEGER|-1
Name=STRING|"Break"
[Actions\Action2]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create variable ""LATEST_FILENAME"" with value ""Not Found"""
Params=FOLDER
[Actions\Action2\Params]
expand=STRING|"0"
varname=STRING|"LATEST_FILENAME"
varvalue=STRING|"Not Found"
[Actions\Action20]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Actions\Action3]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create variable ""LATEST_DATETIME"" with value ""0"""
Params=FOLDER
[Actions\Action3\Params]
expand=STRING|"0"
varname=STRING|"LATEST_DATETIME"
varvalue=STRING|"0"
[Actions\Action4]
ActionID=STRING|"A_LOOP_FILE"
Enabled=INTEGER|-1
Name=STRING|"File Loop"
Params=FOLDER
[Actions\Action4\Params]
createmode=STRING|"1"
date1=STRING|"20040520"
date2=STRING|"20040520"
destvar=STRING|"CURRENT_FILENAME"
DuringDays=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"D:\robotask\recieve\*.mov"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderMonths=STRING|"1"
savesize=STRING|"0"
subdirs=STRING|"1"
timesize=STRING|"1"
timevar=STRING|"CURRENT_DATETIME"
WithoutPath=STRING|"0"
[Actions\Action5]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action5\Params]
message=STRING|"Current DateTime {CURRENT_DATETIME}"
type=STRING|"0"
[Actions\Action6]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action6\Params]
message=STRING|"Latest DateTime {LATEST_DATETIME}"
type=STRING|"0"
[Actions\Action7]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action7\Params]
case=STRING|"0"
operator=STRING|"3"
type=STRING|"2"
value1=STRING|"{CURRENT_DATETIME}"
value2=STRING|"{LATEST_DATETIME}"
[Actions\Action8]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action8\Params]
message=STRING|"CURRENT_DATETIME {CURRENT_DATETIME} > LATEST_DATETIME {LATEST_DATETIME}"
type=STRING|"0"
[Actions\Action9]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""LATEST_FILENAME"" with value ""{CURRENT_FILENAME}"""
Params=FOLDER
[Actions\Action9\Params]
expand=STRING|"1"
varname=STRING|"LATEST_FILENAME"
varvalue=STRING|"{CURRENT_FILENAME}"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_CYCLIC"
Params=FOLDER
[Events\Event1\Params]
id=STRING|"IV17E3HT"
interval=STRING|"10"
move one at a time
In order to find oldest file you must modify your task so:
1. Insert this construction after "File loop" action
If Latest_DateTime = "0" then
Set variable "LATEST_FILENAME" with value "{CURRENT_FILENAME}"
Set variable "LATEST_DATETIME" with value "{CURRENT_DATETIME}"
end if
2. In If then action chande "> More" to "< Less"
And everything must work fine.
1. Insert this construction after "File loop" action
If Latest_DateTime = "0" then
Set variable "LATEST_FILENAME" with value "{CURRENT_FILENAME}"
Set variable "LATEST_DATETIME" with value "{CURRENT_DATETIME}"
end if
2. In If then action chande "> More" to "< Less"
And everything must work fine.
move one at a time
What for is placed Break at the end of your task ?
move one at a time
hi oleg
the break is a mistake
can you also show me the change ik al task???
Thanks
)
richard
the break is a mistake
can you also show me the change ik al task???
Thanks

richard
move one at a time
i got i !!!!!!!!!!!
thanks
richard
thanks
richard
move one at a time
sen5241 wrote: i got it !!!!!!!!!!!
thanks
richard