Keeping all temp files until TC or Lister is closed

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
pgriffet
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-01, 22:04 UTC
Location: Belgium

Keeping all temp files until TC or Lister is closed

Post by *pgriffet »

Hi Christian, this is Pierre from Belgium.

I use often the lister to see htm files. TC creates a temp file for each htm file in the TMP directory but if I quit the Lister or if I go to another file, the temp file is deleted. Would it be possible to have an option to keep this files until TC is closed ? Or at the least, until the "lister session" is closed ?
I need it because I have hundred of files to search in for text and the tmp file is a text version of the htm, so it goes faster to search in text files and as I have an old PC (AMD 400), I see the difference. If I could keep the temp files, I would save them for further searches.

I have no idea if it's a big problem to implement.

I have tried a tool called "Web2text" to convert htm to text files but with files from wikipedia, I get an error. The option in TC would avoid the use of another tool just for this conversion.

Thanks for reading me.

Pierre.
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

TC shouldn't normally create a temp file until you're viewing the file from an archive or ftp server, so I'll assume that's what you're doing?

There is a setting named EditWaitTime which might do what you need, but I'm unsure if it works with the internal Lister. Here is the description from the help file:
Timeout value when editing files from an archive or ftp server: If an editor closes within this amount of seconds, assume that it's a multiple document editor and show dialog where user can confirm when editing has ended. Set to 0 to turn off this feature. Set to -1 to not show this dialog at all (e.g. when the file was passed via DDE to the associated program).
This is how I have mine setup:
[CONFIGURATION]
EditWaitTime=-1
User avatar
petermad
Power Member
Power Member
Posts: 16104
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Aezay
TC shouldn't normally create a temp file until you're viewing the file from an archive or ftp server

Tc also makes a temp file if you have configured Lister to "Show HTML as text with links" - and no plugin intercepts the file before Lister itself does.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
pgriffet
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-01, 22:04 UTC
Location: Belgium

Post by *pgriffet »

thanks Petermad, you are right. But how do I keep this files ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50841
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Back in 2003(!) I wrote a little tool which converts html files to plain text. I have uploaded it here:
https://plugins.ghisler.com/addons/htmlextract.zip

Instructions:

HTMLextract.exe v1.0
Freeware html to text converter based on Total Commander's html viewer function

Usage:
Either start it without parameters to get in interactive mode, or pass the
html file to extract as a command line parameter. The program creates a
new text file by just appending the .txt extension to the target file.
Example: test.html -> test.html.txt

This tool accepts wildcards * and ? to convert multiple files in one step.

:!: WARNING: Existing files will be overwritten without warning! :!:
Author of Total Commander
https://www.ghisler.com
Post Reply