rename folders

Discuss RoboTask here
Post Reply
dbortunk
Posts: 27
Joined: Mon Jun 08, 2009 10:38 am

rename folders

Post by dbortunk »

I have a folder structure with about 7,000 folders in it. Many of the folders being created are being named with a .mov at the end of the folder and I would like to script robotask to remove the .mov at the end of these folders. How can i do this?
topsoto
Posts: 5
Joined: Thu Sep 22, 2011 5:11 pm

rename folders

Post by topsoto »

Try to use Ctrl+M for multi-rename tool in Total Commander - it is very simple and will solve your task in seconds!Just select all these folders with .mov extension > press ctrl+m > in Multi-Rename Tool delete extension [E] - now you could see desired results in "new name" > press "start!" > done.
dbortunk
Posts: 27
Joined: Mon Jun 08, 2009 10:38 am

rename folders

Post by dbortunk »

I don't want to know how to do it with total commander, I want to know how to do it with Robotask
topsoto
Posts: 5
Joined: Thu Sep 22, 2011 5:11 pm

rename folders

Post by topsoto »

1. File Loop with settings: by folders, C:\1\*.movC:\1\*.MOV (our folders that must be renamed), assign curent foldername to variable - {OLD_PATH}.2. String Replace: source - {OLD_PATH}, find for .mov, assign to {NEW_PATH} variable.3. Rename Folder: {OLD_PATH} with {NEW_PATH}End LoopHere are the details, simple task of three actions: loop, str replace, rename:;*****************************;* RoboTask Task file;* Do not edit in text editor!;***************************** [Root]ActionAfterRun=INTEGER|0Actions=FOLDERAutomat=INTEGER|-1CatID=INTEGER|2091259954ContinueOnError=INTEGER|0ExternalName=STRING|"Task10"Hide=INTEGER|0ID=INTEGER|751062343LogOnAsUser=INTEGER|1Name=STRING|"Rename folders with .mov"OnErrorTaskID=INTEGER|0Priority=INTEGER|3RunOnClose=INTEGER|0RunOnStartup=INTEGER|0ToLog=INTEGER|3WriteGeneralLog=INTEGER|0[Actions]Action1=FOLDERAction2=FOLDERAction3=FOLDERAction4=FOLDER[Actions\Action1]ActionID=STRING|"A_LOOP_FILE"Enabled=INTEGER|-1Name=STRING|"File Loop"Params=FOLDER[Actions\Action1\Params]createmode=STRING|"1"date1=STRING|"20111003"date2=STRING|"20111003"destvar=STRING|"{OLD_PATH}"DuringDays=STRING|"1"DuringMonths=STRING|"1"file0=STRING|"C:\1\*.mov"file1=STRING|"C:\1\*.MOV"filecount=STRING|"2"OlderDays=STRING|"1"OlderMonths=STRING|"1"savesize=STRING|"0"searchkind=STRING|"1"subdirs=STRING|"0"timesize=STRING|"0"WithoutPath=STRING|"0"[Actions\Action2]ActionID=STRING|"A_STR_REPLACE"Enabled=INTEGER|-1Name=STRING|"STR Replace"Params=FOLDER[Actions\Action2\Params]case=STRING|"0"mode=STRING|"2"source=STRING|"{OLD_PATH}"substring=STRING|".mov"variable=STRING|"{NEW_PATH}"[Actions\Action3]ActionID=STRING|"A_FOLDER_RENAME"Enabled=INTEGER|-1Name=STRING|"Rename Folder ""{OLD_PATH}"""Params=FOLDER[Actions\Action3\Params]folder=STRING|"{OLD_PATH}"newfolder=STRING|"{NEW_PATH}"[Actions\Action4]ActionID=STRING|"A_LOOP_END"Enabled=INTEGER|-1Name=STRING|"End Loop"
Post Reply