Undo in tcmd

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Error404
Junior Member
Junior Member
Posts: 10
Joined: 2007-09-02, 11:42 UTC

Undo in tcmd

Post by *Error404 »

Is there any way to undo operation in tc ?
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

There is no Undo function in TC, only Multi rename tool has this function

but you can activate log file feature to track your file operations, this can help a little
User avatar
PeaceMaker
Senior Member
Senior Member
Posts: 287
Joined: 2005-12-31, 22:32 UTC
Location: Warsaw, Poland
Contact:

Post by *PeaceMaker »

Yes, logging function is very useful!!!
[face=tahoma]LICENSE NUMBER: #101897 Single user license (since: 6th February 2004)
CURRENT VERSION: Total Commander 9.00 beta 12 (released: 31st August 2016)
[/face]
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

PeaceMaker wrote:Yes, logging function is very useful!!!
So that i'm developping a new tool "TC Log Viewer" to make review the log file is much easier
User avatar
PeaceMaker
Senior Member
Senior Member
Posts: 287
Joined: 2005-12-31, 22:32 UTC
Location: Warsaw, Poland
Contact:

Post by *PeaceMaker »

"TC Log Viewer" - sounds great!!!
[face=tahoma]LICENSE NUMBER: #101897 Single user license (since: 6th February 2004)
CURRENT VERSION: Total Commander 9.00 beta 12 (released: 31st August 2016)
[/face]
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

I have a text viewer linked to my log file and placed on a button, so a specific TC log viewer needs to have more functionality than that for me to use it.

However, it'd be just a short step from the log to creating an undo function. Since the TC log is easily parsed, there should be no problem generating a batch (or AutoHotkey) undo for most steps or sequences of steps recorded in the log.

Of course, because of dependencies, there are complications querying which steps could actually be undone successfully... but since Dopus can figure that out, it is possible.

One scenario would be for the tool to sequence the undos in a sort of "sandbox" environment first and inform the user if any individual step of a sequence could not be undone successfully, then halt before applying the sequence outside the sandbox.
Last edited by JohnFredC on 2007-09-16, 12:00 UTC, edited 1 time in total.
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

A log file viewer would indeed be nice. Please consider the following, though:
1. The date format depends on the current registry settings. For example, Americans write the date in the form Month/Day/Year, most Europeans write Day.Month.Year, and most people in Asia Year-Month-Day. You can use GetLocaleInfo to find out the expected format.

2. The logged info is localized. You can find it in the wcmd_*.lng file, string number 1800-1921.
Author of Total Commander
https://www.ghisler.com
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

TC Log Viewer is HERE
User avatar
PeaceMaker
Senior Member
Senior Member
Posts: 287
Joined: 2005-12-31, 22:32 UTC
Location: Warsaw, Poland
Contact:

Post by *PeaceMaker »

2ts4242

Thanks a lot for your fast response!
[face=tahoma]LICENSE NUMBER: #101897 Single user license (since: 6th February 2004)
CURRENT VERSION: Total Commander 9.00 beta 12 (released: 31st August 2016)
[/face]
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

2ts4242
Thanks a lot for this tool! Shall we use this thread for feedback or should we give it at totalcmd.net?

Some suggestions:
  • The ListBox headers should be translatable too (now they are shown in english: "Time", "Source", "Target")
  • The menu item "Refresh" should be translatable too
  • Would be nice, if you split the "Source" column in two columns: one for the "action" (copy, rename and so on), one for the source path / File
  • The "Website" link in the "About" dialogue points to <http://www.utceditors.totalcmd.net/tclogviewer.htm> ==> 404; should be <http://www.totalcmd.net/plugring/tc_log_viewer.html>
  • Would be nice, if splitted log files (when "Every day after midnight" is configured for log files in TC, for instance) were available through the date dropdown box (and must not be opened from the "Open..." dialogue).
  • What do you think about filters (to restrict the list to "Delete" commands, e.g.)?


Thanks! :)
regards, van Dusen

[edit]
Ah, sorry, forget about the "not translatable elements"... I just found, that the keys from 4000 in <Deutsch.lng> are not translated yet
[/edit]
Last edited by van Dusen on 2007-09-18, 21:16 UTC, edited 1 time in total.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

This thread misses one link;)
http://ghisler.ch/board/viewtopic.php?t=17032
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

Embarrassing! :oops: :oops: :oops:
Thanks m^2...
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

2>van Dusen
the link in About dialog is correct but i didn't create the page yet ;)
Post Reply