closing a file keeps the file handle opened
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
closing a file keeps the file handle opened
Greetings!
If I am working with a text file with TextPad and I close that file and I want to move that file to another directory, or rename it, Windows does not allow me to. I have to close TextPad in order for me to move or rename that file. Is there a fix for this? It's very annoying. I am working with TextPad 4.7.3: 32-Bit Edition. By the way, I love TextPad. ;-)
thanks,
josé
If I am working with a text file with TextPad and I close that file and I want to move that file to another directory, or rename it, Windows does not allow me to. I have to close TextPad in order for me to move or rename that file. Is there a fix for this? It's very annoying. I am working with TextPad 4.7.3: 32-Bit Edition. By the way, I love TextPad. ;-)
thanks,
josé
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
Howdy,
Can you provide some more information? I am running the same version of TP on Windows 2k and I can open a file, edit it, close it and then modify the file via the OS just file. I can even do those things while TP has the file open. Hmmmm I wonder if you have set the "Keep files locked while editing them" checked (Preferences -> File). Still wouldn't explain why you have to close TextPad out though.
Can you provide some more information? I am running the same version of TP on Windows 2k and I can open a file, edit it, close it and then modify the file via the OS just file. I can even do those things while TP has the file open. Hmmmm I wonder if you have set the "Keep files locked while editing them" checked (Preferences -> File). Still wouldn't explain why you have to close TextPad out though.
I choose to fight with a sack of angry cats.
Well, open a text file, then close it. Go to the windows browser and move that file to another directory. :-) There's your problem. :-) If it does not happen to you, then something is very weird. I am using XP, which may have other problems in itself. I'll try 2K PRO. I wish I could attached a picture, but I do have my "keep files locked while editing them" unchecked.
josé
josé
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
cd \tmp
echo foo > test.txt
explorer /e,.
Right clicked the test.txt and chose the TextPad option
Closed the file but left TextPad open
Dragged test.txt into \tmp\textpad folder no problem
I repeated the above steps, this time editing the file in case something special was happening once it was marked as dirty but it worked just fine for me.
Windows 2000 Professional, used to be patched up to date but now it's about 2 months out of whack.
echo foo > test.txt
explorer /e,.
Right clicked the test.txt and chose the TextPad option
Closed the file but left TextPad open
Dragged test.txt into \tmp\textpad folder no problem
I repeated the above steps, this time editing the file in case something special was happening once it was marked as dirty but it worked just fine for me.
Windows 2000 Professional, used to be patched up to date but now it's about 2 months out of whack.
I choose to fight with a sack of angry cats.
We sometimes have a similar problem, where the fileserver (win2k) keeps an open file handle to files on a shared drive. We have to use Process Explorer to close that handle (http://www.sysinternals.com/ntw2k/freew ... cexp.shtml).
This is not limited to Textpad however.
Berend
This is not limited to Textpad however.
Berend
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
Yeah, it looks like Process Explorer is what Microsoft recommends for see who has an open file handle.
I choose to fight with a sack of angry cats.
same problem for years
yes, i have this same problem since i know textpad (many years), and it is pretty bothering.
best regards
best regards
TextPad needs to keep a handle on files, in order for the feature "Working folder follows active document", to work correctly. The workaround is to open a file from another directory, and then you will be able to rename or move files from the previous directory, without exiting from TextPad.
Helios Software Solutions
Is this "Working folder follows active document" a core feature of Textpad or it can be switched off? I personally find the folder renaming functionality more important.helios wrote:TextPad needs to keep a handle on files, in order for the feature "Working folder follows active document", to work correctly. The workaround is to open a file from another directory, and then you will be able to rename or move files from the previous directory, without exiting from TextPad.
Wouldn't it be a solution that Textpad moves automatically to its own program folder as soon as there are 0 documents open? (The program folder couldn't be renamed anyway since textpad.exe is running)
This issue is present in Windows 7 still. I want to use that function (not disable it) and still avoid having to close Textpad or open some other file.tilusnet wrote: Wouldn't it be a solution that Textpad moves automatically to its own program folder as soon as there are 0 documents open? (The program folder couldn't be renamed anyway since textpad.exe is running)
I would also say that above is a solution (or move to C:\ or whatever), and should be easy to fix and test: Please do this.