in reply to Trying to determine if path exists in environmental variable
If I change the line to
if (1)
no error persists, but then the program doesn't do what it's supposed to do. :-)