PC Review


Reply
Thread Tools Rate Thread

API code for 'Renaming a Directory'

 
 
Joakim Norrman
Guest
Posts: n/a
 
      29th May 2009
I have not found a command in VBA to rename a directory in Windows Explorer.
Does anyone know the API code for renaming a directory?
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      29th May 2009
Using File System Object...

Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.MoveFolder "C:\temp1" , "C:\temp2"

If this post helps click Yes
---------------
Jacob Skaria


"Joakim Norrman" wrote:

> I have not found a command in VBA to rename a directory in Windows Explorer.
> Does anyone know the API code for renaming a directory?

 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      29th May 2009
See the Name function in VBA help

Name sOldPath As sNewPath

Regards,
Peter T

"Joakim Norrman" <(E-Mail Removed)> wrote in message
news:6B1B4418-8208-47C7-B6B2-(E-Mail Removed)...
>I have not found a command in VBA to rename a directory in Windows
>Explorer.
> Does anyone know the API code for renaming a directory?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming files in a directory nospaminlich Microsoft Excel Programming 2 26th Dec 2007 10:57 PM
Renaming a directory Janiek Buysrogge Microsoft C# .NET 4 22nd Nov 2006 02:30 PM
Renaming files in a directory Microsoft C# .NET 3 31st Dec 2005 04:03 AM
Renaming Active Directory JustAsking Microsoft Windows 2000 Active Directory 1 12th May 2005 02:35 PM
Renaming all files in a directory Jan Kronsell Microsoft Excel Programming 4 19th Feb 2004 12:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:10 PM.