Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / August 2005



Tip: Looking for answers? Try searching our database.

force a file to close

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steven Daedelus - 24 Aug 2005 00:13 GMT
Hi,

I've got a situation where my software needs to eject a CD even if there
is an open file on it. Is there any way to force all open files closed
and eject the CD?

sp

Signature

This sig property of the Soviet Union

Ulrich Hobelmann - 24 Aug 2005 08:41 GMT
> Hi,
>
> I've got a situation where my software needs to eject a CD even if there
> is an open file on it. Is there any way to force all open files closed
> and eject the CD?

I think you can only kill the process that has the file open...  Good
luck finding it.

Well-behaved processes should usually open, read and close files (same
for writing), the exception being programs like databases that need to
have a file opened all the time.  In that case you don't want to eject
it under the program anyway.

Signature

I believe in Karma.  That means I can do bad things to people
all day long and I assume they deserve it.
    Dogbert

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.