Skip 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.

Delete File via Script

Featured Replies

Hi all,

Is there any way to delete a file via scripting??

I´m using a file for storing temporary during an importation and i don´t need the file after the import is done.

Thanks

Edited by Guest

Hi BigEye :) ,

Welcome to the forums!!

Yes, there is a way you can do it by using windows cmd scripting -- not really the real term for it but meh.

The syntax you have to use is:

del "C:YourFilePathYourFile.YourExtension"

In FileMaker --> Enter Script Maker --> Choose Send Event --> insert the calculation:

"del "C:YourFilePathYourFile.YourExtension""

To delete YourFile.YourExtension

(Assuming that C: Is your drive).

Note that you can also use variables filenames aswell (they don't have to be hardcoded)

  • Author

Thanks Genx

it worked very nice but i have to change it to

"cmd /c del "MyPathMyFile.Ext""

if you make it "cmd /c/k del "MyPathMyFile.Ext""

should work even better

...windows cmd scripting -- not really the real term for it but meh.

Nope not the term. The DOS batch language probably came out before you were born. But show it some reverence; it's still alive under the hood and it isn't windows either. Joking aside, I still occasionally use DOS batches (old habits die hard). ;)

Sure, wont argue with you there... No going to say i'm sorry i missed it when it was running as the general interface.

But... as far as i know, the CMD console is NOT actually DOS.. Nothing has direct access to DOS if you're in an operating system. The CMD console may interprate DOS commands and pass them on to dos if it deems necessary, but it will filter them to make sure you don't do silly things like format your hard drive ;)

Jokes aside though, VBS is quicker and can do a lot more.

VBS is quicker and can do a lot more.

Agree totally, Genx. I'm just getting into VBScript (only mid-level stuff so far). But, thanks to Wim, I've gotten a good base. :wink2:

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.