Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-11-2006, 03:45 PM
DougFarmer123 DougFarmer123 is online now
Registered User
 
Join Date: 07-10-2006
Location: Minneapolis
Posts: 9
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?
Reply With Quote
  #2  
Old 07-11-2006, 05:22 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
  #3  
Old 08-16-2006, 11:16 AM
Mini-Tools Timm Mini-Tools Timm is online now
Registered User
 
Join Date: 07-26-2006
Posts: 1
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.
Reply With Quote
  #4  
Old 08-16-2006, 02:04 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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"
Reply With Quote
  #5  
Old 08-12-2009, 02:17 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
In VBP v7, the Rename Files action includes an option to rename matching folders (Rename tab).

http://www.kinook.com/Forum/showthre...?threadid=3884
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 04:16 PM.


Copyright © 1999-2023 Kinook Software, Inc.