Hi, I'm using Igor Pro 4 ans would like to use GetFileFolderInfo to check whether a file exists on a local disk. However I can't find the command in the Igor help or online. Is it only available in later Igor versions? Are there alternatives I can use to check whether a file exists with Igor 4?
If it is possible to use GetFileFolderInfo, could you please post the correct usage explanation as I am not sure which flags to set.
Function DoesFileExist(pathName, pathToFile) String pathName // Name of Igor symbolic path or "" String pathToFile // Full path, partial path relative to symbolic path, or filename relative to symbolic path
Variable refNum Open/P=$pathName/R/Z refNum as pathToFile if(V_flag == 0) Close refNum return1 endif return0 End
Of course, I recommend that you upgrade to the latest (Igor Pro 6.22A).
Everyone in my workgroup is using Igor 4. We do have access to Igor 6 but personally I couldn't see a big difference in everyday use.. Are there any major advantages over Igor 4?
I don't know how it feels if you only ever have worked with an old version. But I was working with Igor 5 and 6 back and forth some years ago and after a while I got so annoyed by the "missing features" in 5 especially in the programming department that I dropped all Igor 5 compatibility in my procedures and never looked back. I worked with Igor 3.1 on an old Mac once and it was like living in the Stone Age for me. Don't know how Igor 4 compares to that. You may get an idea from the comparison page (there's also a link 'previous versions' for Igor 4):
In Igor Pro 4 you can use something like this:
String pathName // Name of Igor symbolic path or ""
String pathToFile // Full path, partial path relative to symbolic path, or filename relative to symbolic path
Variable refNum
Open /P=$pathName /R /Z refNum as pathToFile
if (V_flag == 0)
Close refNum
return 1
endif
return 0
End
Of course, I recommend that you upgrade to the latest (Igor Pro 6.22A).
February 6, 2012 at 08:25 pm - Permalink
Everyone in my workgroup is using Igor 4. We do have access to Igor 6 but personally I couldn't see a big difference in everyday use.. Are there any major advantages over Igor 4?
February 7, 2012 at 03:50 am - Permalink
http://wavemetrics.com/products/igorpro/newfeatures.htm
February 7, 2012 at 04:55 am - Permalink