Posts: 616 from 2005/8/27
From: the land with ...
With IF EXISTS, to my understanding, you need to specify a certain path (whereas the file could have been installed anywhere on sys:). So, I need a structure that will correspond to: "If search finds the file, then execute curl".
The Search command returns a status code (0 if file found, 5 (or WARN) otherwise) that you can test for with If, like this:
If NOT WARN