Use Registry Reads.... they store where My Documents is and stuff. I forgot what key it was but its somewhere...
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 :]
[IMG]https://i304.photobucke*****m/albums/nn168/guza44/sig-1.png[/IMG]
Use Registry Reads.... they store where My Documents is and stuff. I forgot what key it was but its somewhere...
Any donations would help
Originally Posted by Bombsaway707
Originally Posted by Blood
Originally Posted by Alby-kun
Originally Posted by Ali
Originally Posted by CodeDemon
[21:13] CoderNever: HOLY SHIT ITS USER1!Yes it is me... Yup Yup
[IMG]https://i111.photobucke*****m/albums/n121/golmor/learntoprogram-1.png[/IMG]
My.Computer.FileSystem.SpecialDirectories.Desktop
Should do the trick![]()
Pixie force!
-Current Projects-
_______________________
\//Stuff.. :P//\
Current Code: C#
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
[IMG]https://i304.photobucke*****m/albums/nn168/guza44/sig-1.png[/IMG]
Here you go: ("C:\Users\" + SystemInformation.UserName.ToString + "\Desktop")
-Rest in peace leechers-
Your PM box is 100% full.
guza44_44 (11-08-2009)