Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   How to rename a folder (https://www.kinook.com/Forum/showthread.php?t=1912)

DougFarmer123 07-11-2006 03:45 PM

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?

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/showthre...?threadid=3884


All times are GMT -5. The time now is 09:26 AM.


Copyright © 1999-2023 Kinook Software, Inc.