El_Pablo Posted August 8, 2008 Posted August 8, 2008 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
iMarcW Posted August 9, 2008 Posted August 9, 2008 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.
El_Pablo Posted August 11, 2008 Author Posted August 11, 2008 Do you know if Filemaker can read from command prompt returns? If so, there might be a way then.
iMarcW Posted August 11, 2008 Posted August 11, 2008 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.
El_Pablo Posted August 11, 2008 Author Posted August 11, 2008 Unfortunately, zippShell is for Mac only... It would have been great to have the same in Windows.
ralph.nusser Posted August 21, 2008 Posted August 21, 2008 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
El_Pablo Posted August 21, 2008 Author Posted August 21, 2008 (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 August 21, 2008 by Guest
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now