Results 1 to 5 of 5
  1. #1
    guza44_44's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    431
    Reputation
    16
    Thanks
    310

    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 :]
    [IMG]https://i304.photobucke*****m/albums/nn168/guza44/sig-1.png[/IMG]

  2. #2
    User1's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Above the influence
    Posts
    4,065
    Reputation
    61
    Thanks
    4,294,967,295
    My Mood
    Crappy
    Use Registry Reads.... they store where My Documents is and stuff. I forgot what key it was but its somewhere...
    Any donations would help


    Quote Originally Posted by Bombsaway707

    HOLY SHIT ITS USER1
    Quote Originally Posted by Blood

    HOLY SHIT ITS USER1
    Quote Originally Posted by Alby-kun


    HOLY SHIT ITS USER1
    Quote Originally Posted by Ali

    HOLY SHIT ITS USER1
    Quote Originally Posted by CodeDemon
    HOLY SHIT ITS USER1
    Quote Originally Posted by Jussofresh View Post
    HOLY SHIT ITS USER1!
    [21:13] CoderNever: HOLY SHIT ITS USER1!

  3. #3
    SPittn_Blood's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    148
    Reputation
    10
    Thanks
    15
    My Mood
    Inspired
    My.Computer.FileSystem.SpecialDirectories.Desktop

    Should do the trick

    Pixie force!

    -Current Projects-
    _______________________
    \//Stuff.. :P//\
    Current Code: C#

  4. #4
    guza44_44's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    431
    Reputation
    16
    Thanks
    310
    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]

  5. #5
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Here you go: ("C:\Users\" + SystemInformation.UserName.ToString + "\Desktop")
    -Rest in peace leechers-

    Your PM box is 100% full.

  6. The Following User Says Thank You to Zoom For This Useful Post:

    guza44_44 (11-08-2009)

Similar Threads

  1. [HELP]Finding someones desktop location[Solved]
    By Pixie in forum Visual Basic Programming
    Replies: 3
    Last Post: 06-23-2010, 12:42 PM
  2. My entire desktop is GONE :S... please help
    By Beer_Hunter in forum Suggestions, Requests & General Help
    Replies: 12
    Last Post: 02-08-2007, 04:51 PM
  3. Replies: 61
    Last Post: 01-11-2007, 11:12 PM
  4. Iets Gallery Of Desktops, And Sigs
    By i eat trees in forum Art & Graphic Design
    Replies: 20
    Last Post: 08-09-2006, 03:38 AM
  5. my desktops :P
    By i eat trees in forum Art & Graphic Design
    Replies: 20
    Last Post: 05-10-2006, 08:52 AM

Tags for this Thread