Jump to content

FileExists() using macro directory and other folder name


Azzurro
 Share

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...