rsb87 Posted August 6, 2006 Share Posted August 6, 2006 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 Quote Link to comment Share on other sites More sharing options...
coolboy7163 Posted August 7, 2006 Share Posted August 7, 2006 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" Quote Link to comment Share on other sites More sharing options...
Robert Schaub Posted August 8, 2006 Share Posted August 8, 2006 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:" Quote Link to comment Share on other sites More sharing options...
coolboy7163 Posted August 8, 2006 Share Posted August 8, 2006 I guess there's only one way to find out! Quote Link to comment Share on other sites More sharing options...
rsb87 Posted August 8, 2006 Author Share Posted August 8, 2006 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 Quote Link to comment Share on other sites More sharing options...
blevey Posted August 9, 2006 Share Posted August 9, 2006 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!!!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.