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

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

Recommended Posts

Posted (edited)

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
Posted

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)

Posted

...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). ;)

Posted

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

Posted

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.

Posted

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:

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