Results 1 to 9 of 9
  1. #1
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored

    How To Detect All IO's/IS & More [solved]

    I made a program that needs to use 'Program Data'(Win Vista/7) or 'Application Data'(Win XP).

    So you can get the IO by using this.

    [highlight=vb.net]My.Computer.Info.OSFullName[/highlight]

    Now, How should I do this. I have 2 problems...

    1. What method should I use?
    Ex.
    [highlight=vb.net]If My.Computer.Info.OSFullName = "Microsoft Windows 7 Home Premium " Then
    'w/e
    End If[/highlight]

    But then, you would have to get every single OS spelled exactly.

    2.Windows XP puts AppData under the Username. How do I get the username?

    Thanks in Advance.

  2. #2
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Environment.GetFolderPath(Environment.SpecialFolde r.ApplicationData)

    Returns the path to AppData on the current machine.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  3. The Following User Says Thank You to Jason For This Useful Post:

    Cryptonic (07-22-2011)

  4. #3
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by Jason View Post
    Environment.GetFolderPath(Environment.SpecialFolde r.ApplicationData)

    Returns the path to AppData on the current machine.
    I'm confused with this error

    Code:
    Comma, ')', or a valid expression continuation expected.

  5. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by PepsiXHacker View Post


    I'm confused with this error

    Code:
    Comma, ')', or a valid expression continuation expected.
    Jason put a " "(empty space) in his code. You forgot to remove it.



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

    Cryptonic (07-22-2011)

  7. #5
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by Blubb1337 View Post
    Jason put a " "(empty space) in his code. You forgot to remove it.
    OHH. In VB it put

    Code:
    (Environment.SpecialFolder r.ApplicationData)

  8. #6
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Nvm. Guess you got it right now.



  9. #7
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    I don't even remember posting that haha.

  10. #8
    cosconub's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in the programming section MPGH Cash: $90,000,000,000
    Posts
    372
    Reputation
    -4
    Thanks
    39
    My Mood
    Psychedelic
    I SPOON FEED LIKE A BOSS!

    Code:
    ComputerOsVersion: My.Computer.Info.OSVersion
    ComputerOs: My.Computer.Info.OSFullName
    ComputerPlatform: My.Computer.Info.OSPlatform
    i guess u got it. nvm then

    A man is but the product of his thoughts what he thinks, he becomes.
    ~Mohandas Gandhi


    A Genius is nothing with out an idea, An idea is always an idea even without a genius.
    ~ Immortal

  11. The Following User Says Thank You to cosconub For This Useful Post:

    utherson601 (07-27-2011)

  12. #9
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by cosconub View Post
    I SPOON FEED LIKE A BOSS!

    Code:
    ComputerOsVersion: My.Computer.Info.OSVersion
    ComputerOs: My.Computer.Info.OSFullName
    ComputerPlatform: My.Computer.Info.OSPlatform
    i guess u got it. nvm then
    I knew that, but Jason has a much easer way...

Similar Threads

  1. [Question] how to use all adresses
    By niekill in forum WarRock - International Hacks
    Replies: 7
    Last Post: 12-14-2007, 07:40 AM
  2. [Tutorial]How to set all maps FREE
    By tony94 in forum WarRock - International Hacks
    Replies: 18
    Last Post: 05-30-2007, 12:26 PM
  3. How to buy all the weapons?
    By EyalZamir in forum WarRock Korea Hacks
    Replies: 5
    Last Post: 05-15-2007, 10:08 PM
  4. here is how to unlock all slots 5-8
    By shadowsecret in forum WarRock - International Hacks
    Replies: 3
    Last Post: 04-03-2007, 08:43 AM
  5. How To Hack All The Maps+Velruf Mod
    By pepolshet in forum WarRock - International Hacks
    Replies: 14
    Last Post: 03-14-2007, 03:02 AM