#1
|
|||
|
|||
How to rename a folder
I would like to replace my dos RENAME command with a build in Visual Build Step. The command renames a folder to a backup name.
I cannot seem to get the Rename Files step to do a folder. Is there another step type I should be using? |
#2
|
|||
|
|||
The Rename Files step only renames files, not folders (we'll consider adding this capability). You could use the move option of the Copy Files action, but that would be slower than a %DOSCMD% rename or move, because it will actually move all the files in the folder.
|
#3
|
|||
|
|||
I too would like to see the ability to rename folders. It's a very important part of our automation, in which we create folder hiearchies from a template and then use VisualBuild to modify the hierachy as needed. Since folder renaming was not part of VB, I had to write a program to do this instead.
|
#4
|
|||
|
|||
As mentioned, you can use a Run Program action with a command of
%DOSCMD% rename "c:\path\olddir" "newdir" or %DOSCMD% move "c:\path\olddir" "c:\path\newdir" |
#5
|
|||
|
|||
In VBP v7, the Rename Files action includes an option to rename matching folders (Rename tab).
http://www.kinook.com/Forum/showthre...?threadid=3884 |
|
|