Guest herewegoagain Posted October 8, 2002 Posted October 8, 2002 I am trying to find a duplicate to use in a try ..... catch situation for System.Environment.UserDomainName System.Environment.UserName System.Environment.OSVersion.Platform System.Environment.CurrentDirectory Works fine in XP, NT, and 2000. Not in 98 or Me. Does anyone have any suggestions of what to use instead in 98 and ME? Quote
*Gurus* Derek Stone Posted October 8, 2002 *Gurus* Posted October 8, 2002 All of those except UserDomainName should work fine in Windows 98 and ME. Are you sure something else isn't throwing an exception? Quote Posting Guidelines
Guest herewegoagain Posted October 8, 2002 Posted October 8, 2002 I will eliminate domain name from the equation and see if that will make a difference. The app after it was distributed just bombed saying that it was not able to work on 98 or ME. It didnt give me specifics except to say that these wouldnt work. I imagine it might well be the case though. Quote
*Gurus* divil Posted October 8, 2002 *Gurus* Posted October 8, 2002 The documentation always says (for each class) what Operating Systems it will work under, maybe that'll help. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts