View Full Version : How to rename a folder
DougFarmer123
07-11-2006, 03:45 PM
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?
kinook
07-11-2006, 05:22 PM
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.
Mini-Tools Timm
08-16-2006, 11:16 AM
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.
kinook
08-16-2006, 02:04 PM
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"
kinook
08-12-2009, 02:17 PM
In VBP v7, the Rename Files action includes an option to rename matching folders (Rename tab).
http://www.kinook.com/Forum/showthread.php?threadid=3884
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.