Jump to content

Delete File via Script


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

Recommended Posts

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)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

This topic is 5784 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
 Share

×
×
  • Create New...

Important Information

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