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

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

Recommended Posts

  • Newbies
Posted

Hi everybody..

 

I have an Issue with the UNZIPFile function of 360works scriptmaster v4.32

 

the file is correctly uncompressed... but the zip file remains busy until i close filemaker

 

the matter is that i want to delete this file after opération... but it's impossible!

do you have the same with your versions?

 

many thanks for your help

 

Antoine

Posted

I ran a test to see if I could replicate what is happening to you but was unable. I was able to unzip the file and then delete it while filemaker was open. I deleted the file by just dragging it out of the finder window and into the trash. This test was done on Mac OSX so the behavior may be different in a Windows environment. Did you register the function first or did you run it out of the example file?

  • Newbies
Posted

Sorry my question was not complete

 

i'am using FM12 on Windows 7  and FMserver12 on Windows server 2008

i tried with ScriptMaster.fmp12 file and with my own files

 

the files are well unzipped in a separate folder, but when i want to delete the initial zip file i got this message:

 

The action can't be completed because the folder is open in another program

close the folder and try again

 

but the initial ZIP file is on my desktop.. and there is no open folder !

 

i have to close Filemaker to be able to delete the ZIP file :hmm:

Posted

I replicated your error in a Windows environment. I reviewed the code in the module and it looked like we weren't closing the zip file. Add the line zipFile.close() to the module and you should be able to now delete the file without having to close FileMaker. Here is a snippet showing where you should add the line 

//flush the output stream and close it.
bos.flush();
bos.close();

//close the input stream.
bis.close();

}

}
zipFile.close();
}
catch(IOException ioe) {
return "IOError :" + ioe;
}

return 1;

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