[RESOLVED] Path to Desktop
I want to move a file from the users desktop to the running applications folder.
This is what i have which works for me - but the desktop path will be different for each user so am looking for the system path
Code:
Dim FileToMove As String
Dim MoveLocation As String
FileToMove = "c:\users\me\desktop\test.txt"
MoveLocation = "c:\TestFolder\test2.txt"
If System.IO.File.Exists(FileToMove) = True Then
System.IO.File.Move(FileToMove, MoveLocation)
MsgBox("file moved")
Close()
Else
MessageBox.Show("file not found. Please check that the file is saved to your desktop and it is called test.txt")
End If