What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Environmental variables in C#

Environmental variables in C#
Author: Message:
djdannyp
Elite Member
*****

Avatar
Danny <3 Sarah

Posts: 3546
Reputation: 31
37 / Male / Flag
Joined: Mar 2006
O.P. Environmental variables in C#
I'm trying to use this code to check for the presence of Windows Defender:

code:
if (File.Exists("%ProgramFiles%\\Windows Defender\\MSASCui.exe") == true)

However it doesn't work, lol.  It returns that windows defender isn't installed, even though it 100% is.

This is definitely the problem as if i change it back to look for C:\Program Files\Windows Defender\MSASCui.exe then it finds it.

Any ideas what I'm doing wrong?
[Image: 1ftt0hpk-signature.png]
AutoStatus Script || Facebook Status Script
5274 days, 6 hours, 29 seconds ago
01-15-2009 08:31 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Environmental variables in C# - by djdannyp on 01-15-2009 at 08:31 AM
RE: Environmental variables in C# - by ShawnZ on 01-15-2009 at 08:55 AM
RE: Environmental variables in C# - by djdannyp on 01-15-2009 at 12:08 PM
RE: Environmental variables in C# - by ShawnZ on 01-15-2009 at 01:32 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On