I am trying to delete a file located in ("C:\Users\Josh\Desktop\text.txt")
I use My.Computer.FileSystem.DeleteFile("C:\Users\Josh\Desktop\text.txt") and that worked.
But if i were to use the application in another computer, the location would not be on "Josh".
What do i put instead of Josh so it will access the user's desktop?
I tried ("C:\Users\%Username%\Desktop\text.txt") but it didn't work
Thanks.
I use My.Computer.FileSystem.DeleteFile("C:\Users\Josh\Desktop\text.txt") and that worked.
But if i were to use the application in another computer, the location would not be on "Josh".
What do i put instead of Josh so it will access the user's desktop?
I tried ("C:\Users\%Username%\Desktop\text.txt") but it didn't work
Thanks.