Quantcast
Channel: GSAK Forum
Viewing all articles
Browse latest Browse all 75541

Problem with FileExist Function by Seamonsters in the Mist - 2013-09-02

$
0
0
GSAK 8.3.1.48 Windows 7 32 bit

I have just recently started having problems with a macro that uses the FileExist function.

CODE
$UserDir = GetEnvV("USERPROFILE")
$MyFindsFiles="$UserDir\Documents\My Geocaching\PQ\My Finds*.zip"
$OwnedFiles="$UserDir\Documents\My Geocaching\PQ\Owned.zip"
$PQs="$UserDir\Documents\My Geocaching\PQ\*.zip"

# Get PQ's
GcGetPQ Settings="NotDownloaded"

# Load My Found Caches
IF FileExists($MyFindsFiles)
LOAD Settings="My Finds"
ENDIF

# Load Owned Caches
IF FileExists($OwnedFiles)
LOAD Settings="Owned"
ENDIF

# Load Not Found Caches
IF FileExists($PQs)
LOAD Settings="Not Found"
ENDIF


Within the last couple of months the test for FileExists is reporting false when it should be reporting true. currently I have files in that folder that match the criteria for both the $OwnedFiles and $PQs variables, but the FileExists function is reporting false and the load commands are skipped.

user posted image

Any ideas why it's not working? wacko.gif

Viewing all articles
Browse latest Browse all 75541

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>