QUOTE (Cyber1805 @ August 09, 2013 05:32 pm) |
Wie verwende ich diesen Befehl "FileExists( sPathString ) : boolean" Will damit überprüfen ob auf dem Garmin gefundene Dosen vorhanden sind. Pfad zur Datei wäre: G:\Garmin\geocache_visits.txt Habe vor das mit dem Befehl publish logs zu verknüpfen Mein Macro würde dann so aussehen: If FileExists( G:\Garmin\geocache_visits.txt ) : boolean GcPublishFetch Type=GPS Settings=Publish Else Endif |
Du bist fast dran.
Der einzige Fehler ist: Das commando ist FileExists( sPathString ) : boolean
sPathString started with s, also ein String.
: boolean heist: es kommt einen TRUE oder FALSE raus.
Also muss dass sein:
GSK |
If FileExists( "G:\Garmin\geocache_visits.txt") GcPublishFetch Type=GPS Settings=Publish Else Endif |