Jump to content

two "Not FileExists"


Recommended Posts

instead of doing a nested if statement.

can this be done in one line?

If Not FileExists("C:\Program Files\NetSupport Manager\PCICTLUI.EXE") Or Not FileExists("C:\Program Files\Netsupport\NetSupport Manager\PCICTLUI.EXE") Then

doesnt seem to work... =/

Link to comment
Share on other sites

  • Developers

Could be me but both work the same. The () do not really have a function here.

One thing you forgot to mention is what you want to test for.

Should the IF be true when one of the files doesn't exists -> Use OR

Should the IF be true when both of the files doesn't exists -> Use And

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...