lothos12345 Posted March 15, 2004 Posted March 15, 2004 Can anyone give me an example of how I could move all the files in one directory to another directory in VB.NET? Any help with this question would be greatly appreiciated. Quote
Administrators PlausiblyDamp Posted March 15, 2004 Administrators Posted March 15, 2004 Rough and ready but should give you the idea Dim files() As String files = System.IO.Directory.GetFiles("c:\") For Each file As String In files System.IO.File.Move(file, "d:\" & file.Substring(3, file.Length - 3)) Next Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.