A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Windows XP Help and Support
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to manually unlock a (text) file from a program?



 
 
Thread Tools Display Modes
  #1  
Old September 29th 09, 02:20 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.help_and_support
Camille Petersen
external usenet poster
 
Posts: 31
Default How to manually unlock a (text) file from a program?

Sometimes there are programs which open a text file (e.g. a log file for writing something into it).
Unfortunately they do not release them but hold constantly a lock on these files until the
programs are closed.

Can I somehow detach/unlock the file lock e.g. by a command line command or other tool?

Do these programs stop working if they are de-coupled from their file?

Actually they could continue to write something into these log files.
Or are there any other reasons which let them crash?

Camille

Ads
  #2  
Old September 29th 09, 02:31 PM posted to microsoft.public.windowsxp.help_and_support
R. McCarty
external usenet poster
 
Posts: 3,171
Default How to manually unlock a (text) file from a program?

Why would you want to interfere with a normal process that uses
workspace files ? If you forcibly close the workspace files the
parent application is likely to fail or function incorrectly. Not sure
what your goal is. Most applications close their temporary files
when the program is closed. Any "Orphaned" files can usually be
cleaned up from the System/User temp folders just after a boot.

"Camille Petersen" wrote in message
...
Sometimes there are programs which open a text file (e.g. a log file for
writing something into it).
Unfortunately they do not release them but hold constantly a lock on these
files until the
programs are closed.

Can I somehow detach/unlock the file lock e.g. by a command line command
or other tool?

Do these programs stop working if they are de-coupled from their file?

Actually they could continue to write something into these log files.
Or are there any other reasons which let them crash?

Camille



  #3  
Old September 29th 09, 02:35 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.help_and_support
BillW50
external usenet poster
 
Posts: 5,556
Default How to manually unlock a (text) file from a program?

In ,
Camille Petersen typed on 29 Sep 2009 13:20:29 GMT:
Sometimes there are programs which open a text file (e.g. a log file
for writing something into it). Unfortunately they do not release
them but hold constantly a lock on these files until the
programs are closed.

Can I somehow detach/unlock the file lock e.g. by a command line
command or other tool?


Actually yes, Camille.

Unlocker
http://ccollomb.free.fr/unlocker/

Do these programs stop working if they are de-coupled from their file?

Actually they could continue to write something into these log files.
Or are there any other reasons which let them crash?


It depends on the program. But Unlocker can copy the file and you can
view that one without decoupling the original.

--
Bill
Windows XP SP2 (5.1.2600)
Asus EEE PC 702G8 ~ 2GB RAM ~ 16GB-SDHC


  #4  
Old September 29th 09, 02:42 PM posted to microsoft.public.windowsxp.help_and_support,microsoft.public.windowsxp.general
Bob I
external usenet poster
 
Posts: 9,943
Default How to manually unlock a (text) file from a program?



Inline.


Camille Petersen wrote:

Sometimes there are programs which open a text file (e.g. a log file for writing something into it).
Unfortunately they do not release them but hold constantly a lock on these files until the
programs are closed.


That is becauee the program will be writing to it.


Can I somehow detach/unlock the file lock e.g. by a command line command or other tool?


Why would you want to close a file that a program is writing to?


Do these programs stop working if they are de-coupled from their file?


Yes.


Actually they could continue to write something into these log files.


Not if you crash the program.

Or are there any other reasons which let them crash?


Programs crash for various reasons.


Camille


Why not just copy the file of interest?

  #5  
Old September 29th 09, 03:51 PM posted to microsoft.public.windowsxp.help_and_support
David
external usenet poster
 
Posts: 49
Default How to manually unlock a (text) file from a program?

Depending on the file, I have found that I can sometimes rightclick, drag a
file and select copy when I release the mouse. This will quite often copy
the file and you can then open the copy.

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available

"Camille Petersen" wrote in message
...
Sometimes there are programs which open a text file (e.g. a log file for
writing something into it).
Unfortunately they do not release them but hold constantly a lock on these
files until the
programs are closed.

Can I somehow detach/unlock the file lock e.g. by a command line command
or other tool?

Do these programs stop working if they are de-coupled from their file?

Actually they could continue to write something into these log files.
Or are there any other reasons which let them crash?

Camille



  #6  
Old September 29th 09, 04:48 PM posted to microsoft.public.windowsxp.help_and_support,microsoft.public.windowsxp.general
BillW50
external usenet poster
 
Posts: 5,556
Default How to manually unlock a (text) file from a program?

In ,
Bob I typed on Tue, 29 Sep 2009 08:42:33 -0500:
Inline.

Camille Petersen wrote:

Sometimes there are programs which open a text file (e.g. a log file
for writing something into it). Unfortunately they do not release
them but hold constantly a lock on these files until the programs are
closed.


That is becauee the program will be writing to it.

Can I somehow detach/unlock the file lock e.g. by a command line
command or other tool?


Why would you want to close a file that a program is writing to?

Do these programs stop working if they are de-coupled from their
file?


Yes.

Actually they could continue to write something into these log files.


Not if you crash the program.

Or are there any other reasons which let them crash?


Programs crash for various reasons.

Camille


Why not just copy the file of interest?


Because Windows will not allow users to copy locked files normally. For
example, watch a youtube video with your browser and file exists in your
temp folder. But you can't copy it or anything. Close the browser
(either IE or Firefox works) and the file vanishes. So how do you save
it?

Unlocker
http://ccollomb.free.fr/unlocker/

--
Bill
Windows XP SP2 (5.1.2600)
Asus EEE PC 702G8 ~ 2GB RAM ~ 16GB-SDHC


  #8  
Old September 29th 09, 09:32 PM posted to microsoft.public.windowsxp.help_and_support
Jose
external usenet poster
 
Posts: 3,140
Default How to manually unlock a (text) file from a program?

On Sep 29, 9:20*am, (Camille Petersen) wrote:
Sometimes there are programs which open a text file (e.g. a log file for writing something into it).
Unfortunately they do not release them but hold constantly a lock on these files until the
programs are closed.

Can I somehow detach/unlock the file lock e.g. by a command line command or other tool?

Do these programs stop working if they are de-coupled from their file?

Actually they could continue to write something into these log files.
Or are there any other reasons which let them crash?

Camille


It sounds like you are describing files that are in use which will
prevent modification/deletion as long as the application is running
and using them.

The log for the Windows Task Scheduler (SchedLgU.txt) is a good
example (lots of Windows log files). You can read it, but you can't
modify or delete it until the Task Scheduler service is stopped. You
can open the file, copy/paste the contents to another file. Some log
files can't even be opened for reading while they are in use. This is
by design and not indication of an issue that needs attention.

This is not the same as a file that is read only or not properly
released when a program ends. A user may also be prevented from
tampering with a file through restrictions/permissions or the file may
not allow simultaneous modification from more than one source.

You can download third party tools for stubborn files that will delete
them using methods that are generally already available to you through
the Windows GUI. Looks like magic, but it's not really. It is just
more convenient and usually faster than trying to figure it out
yourself. You have also added another program to your system just to
delete a stubborn file, which you can always uninstall later if you
want, and you introduce the potential for malicious software to be
installed on your system.

If something is crashing, hopefully you will try to fix it.

What is the file(s) you are interested in and what are the messages
you see and we can tell you what is going on and provide the most
appropriate.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 10:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.