August 8, 200817 yr 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
August 9, 200817 yr 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.
August 11, 200817 yr Author Do you know if Filemaker can read from command prompt returns? If so, there might be a way then.
August 11, 200817 yr 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.
August 11, 200817 yr Author Unfortunately, zippShell is for Mac only... It would have been great to have the same in Windows.
August 21, 200817 yr 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
August 21, 200817 yr Author 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 August 21, 200817 yr by Guest
Create an account or sign in to comment