Jump to content
Sign in to follow this  

FileExists() using macro directory and other folder name

Recommended Posts

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


code... false


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.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...