Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Must it be a Plugin?

Featured Replies

Hi,

I use FM Server 9 under Windows 2003 Server with FM 8.5 clients under Windows XP.

I want to use functionality in a script to rename and copy files in the windows environment.

I know I can do this with the troi file plugin.

Question is; that means I must install the plugin for every client yes?

Is there a way to rename and copy files reliably under windows that does not require me to use a plugin so I dont need to install it on all the clients?

Can a custom function do this? (I understand those are shared between all clients yes?)

Thanks

You can automatically download and update client plug-ins from server. This requires a bit of coding, i.e. you should use special functions provided by the AutoUpdate plug-in (included) to see if you have a new version on the server, then get it and install.

Under Windows you can also use shell commands to work with files with the Send Event script. E.g. "cmd /C move " & fullPathToSource & " " & fullPathToTarget. This is harder than using a special plug-in, because to have solid code you should check for errors and the only way you can do this is to redirect output and error into files (using code like "1>output.log 2>error.log"), then import these files and see if the operation was successful. Doable, but I myself would prefer a plug-in.

  • 1 month later...

Absolutely. You can use the Send Event script step to execute Windows CLI commands. For renaming:

cmd /c ren someFile.ext renamedFile.ext

You can string commands together with the & and && symbols and catch errors by use the or symbol ("|") and piping the output to a text file. If you have FM waiting in a pause you can then import that text file to handle the error.

All of this is much easier with plugins though. And as mentioned you can push plugins down to the clients automatically with the FileMaker Server functionality.

  • 3 weeks later...

You could try the free SaveIT plugin available here: http://www.cnsplug-ins.com/products.htm?product=saveit

Also, Gap_Filler will be including a file manipulation function soon in its $30 utility package: http://www.dracoventions.com/products/fm/ The function is actually already there but requires you to set something to make it visible (I'm still testing it). Send me a support request if you'd like to try it.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.