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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.