Rename Files
Posted: Fri Jul 15, 2005 2:33 pm
All I'm trying to do is rename several existing files (which could number in the hundreds) to my selected filenames. I generate the files to rename using "Search for Files" and writing it to a text file. But for some reason it isn't working. See my task below with just 2 files for brevity. Thanks for the help.
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|385352816
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task18"
Hide=INTEGER|0
ID=INTEGER|837599829
Name=STRING|"Rename Files"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
[Actions\Action1]
ActionID=STRING|"A_LOOP_TEXT"
Enabled=INTEGER|-1
Name=STRING|"Text Loop"
Params=FOLDER
[Actions\Action1\Params]
destvar=STRING|"{CURRENTFILENAME}"
file=STRING|"C:\list"
line0=STRING|"G:\025837611.tif"
line1=STRING|"G:\02583768.tif"
linecount=STRING|"2"
sourcetext=STRING|"1"
[Actions\Action2]
ActionID=STRING|"A_LOOP_TEXT"
Enabled=INTEGER|-1
Name=STRING|"Text Loop"
Params=FOLDER
[Actions\Action2\Params]
destvar=STRING|"NEWFILENAME"
line0=STRING|"G:\113.tif"
line1=STRING|"G:\114.tif"
linecount=STRING|"2"
sourcetext=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_FILE_RENAME"
Enabled=INTEGER|-1
Name=STRING|"Rename File"
Params=FOLDER
[Actions\Action3\Params]
count=STRING|"1"
file0=STRING|"{CURRENTFILENAME}"
mask=STRING|"{NEWFILENAME}"
subdirs=STRING|"0"
[Actions\Action4]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Actions\Action5]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|385352816
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task18"
Hide=INTEGER|0
ID=INTEGER|837599829
Name=STRING|"Rename Files"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
[Actions\Action1]
ActionID=STRING|"A_LOOP_TEXT"
Enabled=INTEGER|-1
Name=STRING|"Text Loop"
Params=FOLDER
[Actions\Action1\Params]
destvar=STRING|"{CURRENTFILENAME}"
file=STRING|"C:\list"
line0=STRING|"G:\025837611.tif"
line1=STRING|"G:\02583768.tif"
linecount=STRING|"2"
sourcetext=STRING|"1"
[Actions\Action2]
ActionID=STRING|"A_LOOP_TEXT"
Enabled=INTEGER|-1
Name=STRING|"Text Loop"
Params=FOLDER
[Actions\Action2\Params]
destvar=STRING|"NEWFILENAME"
line0=STRING|"G:\113.tif"
line1=STRING|"G:\114.tif"
linecount=STRING|"2"
sourcetext=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_FILE_RENAME"
Enabled=INTEGER|-1
Name=STRING|"Rename File"
Params=FOLDER
[Actions\Action3\Params]
count=STRING|"1"
file0=STRING|"{CURRENTFILENAME}"
mask=STRING|"{NEWFILENAME}"
subdirs=STRING|"0"
[Actions\Action4]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Actions\Action5]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"