If you are using 2005, you have a MoveFile option in the My namespace...
My.Computer.FileSystem.MoveFile("c:\somefile.txt", "c:\somedirectory\newfilename.txt")
In 2005 you also have the My Namespace....
Dim MyString As String = "c:\this\is\a\path\file.txt"
MessageBox.Show(My.Computer.FileSystem.GetFileInfo(MyString).Directory.Name)
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.