Announcement

Collapse
No announcement yet.

If Condition

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • If Condition

    COMMENT: Search specific location for myfile.exe
    Search For File (%FileSearchResult% = location of myfile.exe)
    COMMENT: If myfile.exe is not found
    IF (%FileSearchResult% = "NOT FOUND")
    COMMENT: DO THIS
    HTTP Download (http://mydomain.com/myfile.exe -> %TempDir%)
    Execute (%TempDir%\myfile.exe)
    ENDIF

    Do you find anything obviously wrong with the above if condition?

    Thanks, nt

  • #2
    Re: If Condition

    No, I can't see anything wrong from looking at it. What happens at runtime? The best method of debugging is using Message Boxes to display the contents of variables and place them inside loops to see if it makes it to certain points. Also make sure that you have set the error notification to "Verbose" for all of your actions so that if an error is thrown, you will see as much information as possible.

    Comment


    • #3
      Re: If Condition

      Yours:Search For File (%FileSearchResult% = location of myfile.exe)
      Suggested change:set the default value to say 5,
      suggested chagne:IF (%FileSearchResult% = 5)

      do the rest, it should work

      hope this is of some help

      dan

      Comment


      • #4
        Re: If Condition

        What is the logic with the number 5?

        Thanks for the feedback...nt

        Comment

        Working...
        X