-
Desktop Location
Okay for my location of desktop it is
C:\Users\My Name\Desktop
now how do i make it so that "My Name" will work for anyones computer? So u put a code there and it automatically uses your username i have tried things like
C:\Users\Username\Desktop and C:\Users\%Username%\Desktop but im not sure how to use those things so i need help.
Thanks :]
-
Use Registry Reads.... they store where My Documents is and stuff. I forgot what key it was but its somewhere...
-
My.Computer.FileSystem.SpecialDirectories.Desktop
Should do the trick :D
-
well i kinda wanna know it in text cus i wanna create a folder to it and if i do that then i cant create a folder otherwise it says im trying to make it a double and gives an error
-
Here you go: ("C:\Users\" + SystemInformation.UserName.ToString + "\Desktop")