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

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

Recommended Posts

Posted

Hi,

Is there a clean way to check if a file exist?

Here is my script:


Set error capture [on]

recover file [No dialog; "donoterase.fp7"]

Set variable [$errorCode; Get (LastError)]

Set error capture [off]

if [$errorCode = 0]

  Send Event ["aevt"; "pdoc"; "cmd del "s:donoterase recovered.fp7""]

  exit script[1]

else

  exit script[0]

end if

Actually I want to check if a usb drive was connected. So I left a permanent dummy file on the usb drive.

Thanks in advance for your help!

NB

Posted

AFAIK, the only way to currently do this is with a plug-in (in fact, many plugins: Troi File, SmartPill, even SMTPit, whose main purpose is to send e-mail). I'd love to hear otherwise.

Posted

Do you know if Filemaker can read from command prompt returns? If so, there might be a way then.

Posted

zippTools has a free shell script plugin that would probably work. Just google zippTools filemaker.

If you go this route, please post your shell code here, I'd love to have a way to do this.

Posted

Unfortunately, zippShell is for Mac only... It would have been great to have the same in Windows.

  • 2 weeks later...
Posted

From the number one plug-in developer the number one plug-in:

[color:red]Command your shell

With the [color:green]TrFile_ExecuteShell function you can execute a command in the command shell of the operating system. On Mac OS X this will be a command executed in the UNIX Bourne shell, and on Windows this is the Windows CMD shell.

TROI File plug-in

Happy FileMaking

Ralph Nusser

Sogetes Computer-Services

www.sogetes.com

Posted (edited)

I already have some licenses of TroiFile and other plugins dating from 1-2 years, we used them at the beginning. But the maintenance at each new plugin updates was a pain in the ...

So I decided to use only the FM functions and ability.

Edited by Guest

This topic is 5939 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.