July 28, 201015 yr Newbies New to this but got the function registered. I want to test if a file exists so I am using a FM scrip step SetField( MyDB::TextField ; CheckWhetherFileExists( "/Users/Dekstop/outlook.pst" )] I get a zero in the TextField regardless of the path I use. I am using Win7 and FMProAdv11.v2
July 28, 201015 yr Make sure you specify your full filepath, such as "c:usersusernamedesktopmypicture.jpg"
July 28, 201015 yr Author Newbies I finally got it. Does the path always have to begin with "users"? What about the case when you don't know the user name or the case where the file is on the C Drive. I have many support files in a folder on the C drive and need to know if they are there. Thanks,
July 28, 201015 yr You can parse the user name out of a FileMaker function like: Get (DesktopPath) or Get (DocumentsPath)
July 30, 201015 yr You can use any valid filepath. It works exactly the same as your regular windows filepath. A user's desktop happens to be in that user's folder, but you can specify any file on your system. You can specify files or folders on other drives by using the other drive letter instead of your C drive, for example, if you had a file named "mybackup.zip" in the "backups" folder which was on the root of your D drive, you would use the path "D:backupsmybackup.zip"
Create an account or sign in to comment