Page 1 of 1

Move hidden files?

Posted: Mon Nov 22, 2010 6:11 am
by Nokoff
Is it possible to move hidden files? Or maybe make them unhidden in robotask and then move them?Kind regardsLinden

Move hidden files?

Posted: Sat Nov 27, 2010 5:19 am
by Oleg
You can clear hidden attribute in the loop. See example below.
I wrote this into our ToDo list. Maybe it's necessary to improve "Copy/Move files" action too.

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1776569527
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task985"
Hide=INTEGER|0
ID=INTEGER|668116085
LocalVariables=STRING|"f_name"
LogOnAsUser=INTEGER|1
Name=STRING|"Clear hidden attribute"
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_LOOP_FILE"
Enabled=INTEGER|-1
Name=STRING|"File Loop"
Params=FOLDER

[Actions\Action1\Params]
createmode=STRING|"1"
date1=STRING|"20101127"
date2=STRING|"20101127"
destvar=STRING|"F_NAME"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"C:\incoming\*.csv"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
savesize=STRING|"0"
searchkind=STRING|"0"
subdirs=STRING|"0"
timesize=STRING|"0"
WithoutPath=STRING|"0"

[Actions\Action2]
ActionID=STRING|"A_FILE_ATTRIBUTES"
Enabled=INTEGER|-1
Name=STRING|"Change attributes of file ""{f_name}"""
Params=FOLDER

[Actions\Action2\Params]
archive=STRING|"1"
filename=STRING|"{f_name}"
hidden=STRING|"0"
readonly=STRING|"0"
system=STRING|"0"

[Actions\Action3]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"