N .netdev Member Joined Jan 7, 2006 Messages 10 Programming Experience Beginner Jan 10, 2006 #1 Hello.... Do Anyone have an idea about renaming a directory in vb.net??? Regards!!!
I IfYouSaySo Well-known member Joined Jan 4, 2006 Messages 102 Location Hermosa Beach, CA Programming Experience 3-5 Jan 10, 2006 #2 System.IO.DirectoryInfo is the class you need. MoveTo Is the member function. See sample code on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiodirectoryinfoclasstopic.asp Upvote 0 Downvote
System.IO.DirectoryInfo is the class you need. MoveTo Is the member function. See sample code on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiodirectoryinfoclasstopic.asp
jmcilhinney VB.NET Forum Moderator Staff member Joined Aug 17, 2004 Messages 15,174 Location Sydney, Australia Programming Experience 10+ Jan 10, 2006 #3 The IO.Directory class is a better option as there is no need to create an instance. You just call the Move method, which is Shared. Upvote 0 Downvote
The IO.Directory class is a better option as there is no need to create an instance. You just call the Move method, which is Shared.
jmcilhinney VB.NET Forum Moderator Staff member Joined Aug 17, 2004 Messages 15,174 Location Sydney, Australia Programming Experience 10+ Jan 10, 2006 #4 Moved to more appropriate forum. Not related to Visual Studio. Upvote 0 Downvote