PDA

View Full Version : If Condition


noveltech
12-16-2002, 03:50 PM
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

Darryl
12-16-2002, 04:42 PM
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.

dan37_123
12-17-2002, 04:11 AM
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

noveltech
12-17-2002, 08:24 AM
What is the logic with the number 5?

Thanks for the feedback...nt