Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Can FMP Delete Files from the HD?


rsb87
 Share

Recommended Posts

Is it possible to have FMP 8 delete a file automatically from the Hard drive once it has imported some data? I need to do this on both a Mac and PC. If anybody has any experience with this or if you could send me in the right direction I would greatly appreciate it.

 

Thanks,

 

rsb87

Link to comment
Share on other sites

Most certainly. I've done it on PC using command prompt and the 'Send Event" script step on Filemaker. Here's how it works.

 

1. Create a new script step with the "Send Event" step.

2. Create a new text file on your C:/ drive and name it "a"

 

Then input this command on as the text or calculation on the "Send Event" script step. You can do as much as command prompt can do with files. So you have a lot of options.

 

 

"cmd /c del C:\a.txt"

Link to comment
Share on other sites

Then input this command on as the text or calculation on the "Send Event" script step. You can do as much as command prompt can do with files. So you have a lot of options.

 

 

"cmd /c del C:\a.txt"

 

So what happens if you screw up and only code this

 

"cmd /c del C:"

Link to comment
Share on other sites

Very Interesting. I will have to give that a shot. Do you by chance know how it works for the mac? I have to make the app work on both windows and a mac.

 

Cheers,

 

rsb87

Link to comment
Share on other sites

So what happens if you screw up and only code this

 

"cmd /c del C:"

 

Chopper:

 

I don't think I'd want to find out.... it could be scarry!!!!!

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use