Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5248 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

  • Newbies
Posted

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,

Posted

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"

This topic is 5248 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.