I'm trying to create an xml file, however whenever I set the path name it returns Personal\login.xml instead of the mydocuments path. Currently this is what I'm using:
I also tried:
but the same: Personal\login.xml gets returned. A little more detail, I'm using Win7 64-Bit.
Edit - I asked the question a bit to early. I found the solution:
Code:
path = IO.Path.Combine(Environment.SpecialFolder.MyDocuments.ToString, "login.xml")
IO.File.Create(path)Code:
path = Environment.SpecialFolder.MyDocuments.ToString & "\login.xml"Edit - I asked the question a bit to early. I found the solution:
Code:
path = IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "login.xml")