Total Commander Edit Redirector

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

theosdikaios wrote:I'm not aware of all redirectors: Do there is anyone which prevents open huge files with an editor. Background: if you press F4 by accident with a gigabytes file then you have to wait a long time till the bluescreen or any other error message comes. Do there is any configuration by size? TIA.
If you want you can protect the editor that can crashusing a batch file...

Code: Select all

@echo off
set R=
set /A R =  5000000000 - %~z1
IF /i 0%R% geq 1 myeditor.exe %1
This batch call myeditor.exe with the first parameter interpreted as filename only if the size is less than 500M. AS only number in 32bit are interpreted, you can only compare with value less tan 2Go. This script also protect against those files....
theosdikaios
Senior Member
Senior Member
Posts: 228
Joined: 2006-02-04, 13:02 UTC

Post by *theosdikaios »

Thanks for all replies. I will test it. :D
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

theosdikaios wrote:I'm not aware of all redirectors: Do there is anyone which prevents open huge files with an editor. Background: if you press F4 by accident with a gigabytes file then you have to wait a long time till the bluescreen or any other error message comes. Do there is any configuration by size? TIA.
You have to Ctrl+Shift+Esc quickly.
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Version 1.3.0.0:
  • Added support for TC x64.
  • Protected from security issue (loading DLLs from incorrect path).
  • Fixed: Newly created files (created by Shift+F4) were not detected on FAT/exFAT volumes.
32-bit version / mirror (20 Kb), no-SSE version / mirror (for old processors)
64-bit version / mirror (21 Kb)
Source code (C++) / mirror (30 Kb)
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Parameters ?

Post by *nsp »

Hi i try to use tcer with a pgm that need special parameters :
CommandLineArgs= /SHORTCUT="/edit %F"

Where %F is the file name without quote (it is enlosed with preceeding /edit) how can i do this with TCER ??
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

nsp
Sorry, you cannot. TCER only supports appending the file name to the end of command line, and not inserting it into the middle.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

Flint wrote:nsp
Sorry, you cannot. TCER only supports appending the file name to the end of command line, and not inserting it into the middle.
Just a wish....
In the meantime as i need it, it is alway possible to use a cmd script file using %~f1 in my expression (to unquote)...
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

nsp wrote:Just a wish
I'll consider it.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
yjwself
Junior Member
Junior Member
Posts: 4
Joined: 2010-05-07, 02:02 UTC

Not work on tc8.0rc2 x64 version

Post by *yjwself »

It occus error on tc8.0rc2 x64 version!
it hints : None of the selected elements could be opened!
But it work fine on tc7.57a x86 version.
My system is win7 64bit.
Sorry for my English. It isn't my native language.
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

yjwself
Yes, I noticed similar problem too and partially fixed it, but I need some time to test it on different configurations with different TC options.

As a temporary solution, please, try to set GetTextMode=0 in your wincmd.ini ([Configuration] section) and restart TC.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
sidefx88
Senior Member
Senior Member
Posts: 294
Joined: 2007-04-11, 17:07 UTC
Location: Argentina

Post by *sidefx88 »

Hi, I use TCER on TC 7.x and worked very well, but now I've tested it on TC 8.0 final, and if I select more than one file they don't open the spedified program and show the same error yjself mention :(
I Love Total Commander!
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

sidefx88
If you get the same error yjwself gets, then my reply to you will be the same, as my reply to yjwself (which is located exactly above your own post).
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
brch
Junior Member
Junior Member
Posts: 63
Joined: 2007-10-26, 11:57 UTC
Location: Nördliches Niederösterreich

Post by *brch »

I have an Bug with the Tool.

When i select 2 or moore files an klick "F4" in the TC come a window but the editor do nothing.

A Picture of the Message.
Image: http://img.brch.at/tc/20120530-1.jpg

I use Total Commander 8.0 on Windows 7 x64 Sp1
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

brch
"I'm a writer, not a reader", eh?
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
brch
Junior Member
Junior Member
Posts: 63
Joined: 2007-10-26, 11:57 UTC
Location: Nördliches Niederösterreich

Post by *brch »

I do not understand??
#166032
Post Reply