Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news2!postnews.google.com!n33g2000pri.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Severing ties between Matlab and data files when programming
Date: Wed, 31 Dec 2008 08:41:45 -0800 (PST)
Organization: http://groups.google.com
Lines: 44
Message-ID: <b513c7ec-bf61-4d24-80bb-b715a937209c@n33g2000pri.googlegroups.com>
References: <gjg5s2$533$1@fred.mathworks.com>
NNTP-Posting-Host: 75.186.70.56
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1230741705 25827 127.0.0.1 (31 Dec 2008 16:41:45 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 31 Dec 2008 16:41:45 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: n33g2000pri.googlegroups.com; posting-host=75.186.70.56; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; 
	Trident/4.0; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 
	3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:509353


On Dec 31, 11:16=A0am, "Ryan Utz" <r...@al.umces.edu> wrote:
> I'm constantly constructing m-files that batch process or analyze a numbe=
r of .csv files. When I'm working on one and it messes up for whatever reas=
on (i.e. an error occurs and the process is interrupted), I find that I can=
not move, delete, or make changes on the data file that it was last working=
 on. If I try to, Windows tells me that another program (Matlab) is operati=
ng on the file (or something to the tune of that), even though Matlab is no=
 longer 'Busy', the error has been posted, and a fresh >> is in the command=
 line.
>
> The only solution I've found to this is to shut down Matlab completely, d=
o what I need to to the data file in question, and restart Matlab to start =
work again. There has got to be a better way. I'm guessing (and hoping) it'=
s something simple. 'clear' doesn't do the trick. =A0
>
> Anyone have a solution?
>
> Thanks,
> Ryan

-------------------------------------------------------------------------
Ryan:
It's not a MATLAB solution but a more general one.  Just install
Unlocker.
http://www.download.com/Unlocker/3000-2248_4-10493998.html
Here's the description:
"Ever had such an annoying message given by Windows: Cannot delete
file: Access is denied. There has been a sharing violation. The source
or destination file may be in use or the file is in use by another
program or user. Make sure the disk is not full or write-protected and
that the file is not currently in use. Unlocker is the solution.
Unlocker is an Explorer extension that allows you with a simple right-
click of the mouse on a file or folder to get rid of error message
such as error deleting file or folder, cannot delete folder: it is
used by another person or program."

Unlocker can pry the fingers off the file of whatever application had
gotten ahold of it.  Then you can delete the file, or reuse it, or
whatever.  It sits in the Windows system tray and pops to life
whenever your attempt to do something with a file is denied because
some program has it locked.  It will bring up a window asking if you
want to unlock the file, delete it, and I think some more options.
Regards,
ImageAnalyst