Environment.GetFolderPath(Environment.SpecialFolde r.ApplicationData)
Returns the path to AppData on the current machine.
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.
Environment.GetFolderPath(Environment.SpecialFolde r.ApplicationData)
Returns the path to AppData on the current machine.
You can win the rat race,Originally Posted by Jeremy S. Anderson
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)
Cryptonic (07-22-2011)
Cryptonic (07-22-2011)
Nvm. Guess you got it right now.
I don't even remember posting that haha.
I SPOON FEED LIKE A BOSS!
i guess u got it. nvm thenCode:ComputerOsVersion: My.Computer.Info.OSVersion ComputerOs: My.Computer.Info.OSFullName ComputerPlatform: My.Computer.Info.OSPlatform
~Mohandas GandhiA man is but the product of his thoughts what he thinks, he becomes.
~ ImmortalA Genius is nothing with out an idea, An idea is always an idea even without a genius.
utherson601 (07-27-2011)