It's all about the answers!

Ask a question

Renaming multiple files


Sidda Naik (114) | asked Mar 04 '20, 9:12 p.m.
edited Mar 05 '20, 4:40 a.m.

 can we rename multiple files/artifacts through script or if any in RTC

i use Rtc shell (SANDBOX)to deliver artifacts into repository 
to rename any artifact i  right click on that file and select Rational team concert->rename option .Using this option i could rename only one file at a time
Im looking for a solution where i could rename multiple files to different (each file to named unique)names through script or any other possibility

Thank you

3 answers



permanent link
Ralph Schoon (63.2k33646) | answered Mar 05 '20, 3:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 05 '20, 3:17 a.m.
I can not imagine how anyone could answer this question.
  • There is nothing like an Eclipse shell. there is a Windows shell integration and an Eclipse client.
  • There is no option Rational team concert -> rename option I can find in the RTC Eclipse client.
  • In Eclipse it is very dependent on the view, which information you see.
  • RTC is also only involved in the rename of a file, if it is under source control and the new name needs to be tracked.
If you refer to the Eclipse client and e.g. F2 or Refactor>Rename, that is only enabled for a single selection, probably because it is not designed to rename multiple files, since you would name all with the same name, which would not work.


permanent link
Sidda Naik (114) | answered Mar 05 '20, 4:45 a.m.
edited Mar 05 '20, 8:52 a.m.

Thank you Ralph

I apologize for my way of presenting the query and I corrected it
 
I understood that I cannot rename multiple files at once which is not possible 
My requirement is to rename existing ( for eg "n" Number of files to "n" Different names) files through any script where in it should reflect in my repository when I work through SANDBOX. 


permanent link
Geoffrey Clemm (30.1k33035) | answered Mar 05 '20, 9:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

You can use the RTC "scm" command line tool to script the rename of multiple files.

In particular, if you want to do the move in a sandbox, you would use "scm move path".
If you want to do the move directly in the repository, you would use "scm move repository-path".

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.