Opening zipped text file locks WinZIP

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
durf786
Posts: 5
Joined: Wed Apr 21, 2004 9:14 pm

Opening zipped text file locks WinZIP

Post by durf786 »

If I open a text (or other TextPad-associated) file by double-clicking on it in an archive, WinZIP hangs up until I close TextPad. That does not happen with .doc or other compressed files. WinZIP support said they've heard of this problem happening with TextPad. My versions are: TextPad 4.7.3, WinZip 9.0 SR-1. For TextPad I am using the modified version of shellext.dll that fixes DDE problems.

Any help would be greatly appreciated. I often have many files open in TextPad, so it is a hassle to have to close it to use WinZIP again.

Thanks.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Just a guess, did you try clearing the Configure->Preferences->File->Keep files locked while editing them?
Then I open up and see
the person fumbling here is me
a different way to be
durf786
Posts: 5
Joined: Wed Apr 21, 2004 9:14 pm

Post by durf786 »

Yes, that is unchecked. Thanks.
aerobaticant
Posts: 1
Joined: Fri Oct 26, 2007 8:55 am

This is still a problem ... but can be worked around.

Post by aerobaticant »

I am using TextPad 5.0.3, Win XP and Winzip 9.0 SR-1.

It appears that TextPad either does not close file handles or release the lock information when individual files are closed, but only when the whole of TextPad is closed. This happens when files are opened using DDE.

To reproduce:
Open a zip file containing a .txt file with WinZip
Double click on the .txt file or use Open in the context menu to open the file with TextPad.
Now, until TextPad is closed completely, WinZip is locked.

To work around:
Don't double click, use the context menu to Open With -> TextPad.
Alternatively if TextPad is configured as your WinZip viewer use View with TEXTPAD.EXE
This doesn't lock up WinZip in the same way.

A more 'permanent' fix (in XP):
In an Explorer window select Tools -> Folder Options...
Click on the 'File Types' tab.
Select TXT in the list of Registered file types.
Click 'Advanced' button.
In the 'Edit File Type' window select the open action in the 'Action' list box.
Click 'Edit'.
Uncheck 'Use DDE'.

You may need to edit the 'Application used to perform action' to allow handling of filenames containing spaces by adding "%1" to the end:

"C:\Program Files\TextPad 5\TextPad.exe" -s "%1"

Hope this helps!

Ant.
Post Reply