Azzurro Posted November 5, 2010 Share Posted November 5, 2010 Hi to all, Newbie here.... I'm trying to do a FileExists on C:\Program Files\Microsoft Office\Office12 using the following code : Const $OfficePath = "\Microsoft Outlook\Office12\" If FileExists(@ProgramFilesDir & $OfficePath) Then code... true Else code... false EndIf The problem is that it never find the directory and also returns false but when I explicitely write "C:\Program Files\Microsoft Office\Office12\" it returns true. What am I doing wrong? Can't I use a macro + another string? Your insight would be greatly appreciate. Thank you. Link to comment Share on other sites More sharing options...
Azzurro Posted November 5, 2010 Author Share Posted November 5, 2010 NEVER MIND..... I didn't specify the correct path in the "const". I think I need more coffee..... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now