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.