cm_Save... cm_Load..., please allow file path as parameter

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

cm_Save... cm_Load..., please allow file path as parameter

Post by *Stefan2 »

cm_Save...., please allow file path as parameter

like:

cm_SaveSelection_C:\Temp\Selection.txt

and

cm_LoadSelectionFromFile_C:\Temp\Selection.txt


Whit out showing any file save or load dialog!!!



E.g. for these commends:

cm_SaveSelection=530;Temporarily save selection
cm_SaveSelectionToFile=2031;Save file selection to file
cm_SaveSelectionToFileA=2041;Save file selection to file (ANSI)
cm_SaveSelectionToFileW=2042;Save file selection to file (Unicode)
cm_SaveDetailsToFile=2039;Save all shown columns to file
cm_SaveDetailsToFileA=2043;Save all shown columns to file (ANSI)
cm_SaveDetailsToFileW=2044;Save all shown columns to file (Unicode)
cm_LoadSelectionFromFile=2032;Read file selection from file


 
Last edited by Stefan2 on 2016-06-18, 10:17 UTC, edited 1 time in total.
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: cm_Save...., please allow file path as parameter

Post by *nsp »

Stefan2 wrote:cm_Save...., please allow file path as parameter

like:

cm_SaveSelection_C:\Temp\Selection.txt

and

cm_LoadSelectionFromFile_C:\Temp\Selection.txt


Whit out showing any file save or load dialog!!!



E.g. for these commends:

cm_SaveSelection=530;Temporarily save selection
cm_SaveSelectionToFile=2031;Save file selection to file
cm_SaveSelectionToFileA=2041;Save file selection to file (ANSI)
cm_SaveSelectionToFileW=2042;Save file selection to file (Unicode)
cm_SaveDetailsToFile=2039;Save all shown columns to file
cm_SaveDetailsToFileA=2043;Save all shown columns to file (ANSI)
cm_SaveDetailsToFileW=2044;Save all shown columns to file (Unicode)
cm_LoadSelectionFromFile=2032;Read file selection from file


 
Saving the selection can be done if you copy temporary list %L %WL ...
Loading and saving details are really missing features, (unless you accept to fill your clipboard :( ) !
Loading 'download list' does not have any clip aternatives :( (but is useless as unpack is not supported and queue not really well managed)
Dennis_Stevens
Senior Member
Senior Member
Posts: 215
Joined: 2013-06-08, 16:16 UTC
Location: NRW, Germany

Wunsch: Neuer Befehl mit Parameter zum Laden einer Auswahl

Post by *Dennis_Stevens »

TC kann eine Dateiauswahl in einer externen Datei speichern.
Super wäre es, wenn man diese Dateien über ein Kommando mit Parameterübergabe direkt zurück laden könnte.
Beispiel: cm_LoadSelFromFile D:\Dateilisten\Unit_E8.txt

Oder gibt es das schon? In der Kommandoliste mit Parameter habe ich zu dem Thema Auswahl nur SELECTFILES gefunden, was sich aber auf bestimmte Formate beschränkt.
#230412 Single User Licence
Commanding Win10 64bit totally with version 11
Failix
Junior Member
Junior Member
Posts: 33
Joined: 2018-02-28, 17:26 UTC

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *Failix »

Ich schließe mich diesem Wunsch an. Auch ich habe häufig Bedarf, eine einmal festgelegte Auswahl erneut zu laden und könnte einen Parameter für einen festen Dateipfad dabei gut gebrauchen.

Gruß
Failix
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *ghisler(Author) »

Nein, gibt es noch nicht - ich nehme es auf meine ToDo-Liste.
Author of Total Commander
https://www.ghisler.com
Christian_S
New Member
New Member
Posts: 1
Joined: 2021-04-29, 15:19 UTC

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *Christian_S »

Gibt es inzwischen eine Möglichkeit einen vorgeschlagenen/fixen Pfad vorzugeben?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *ghisler(Author) »

Die Befehle SAVESELECTION und LOADSELECTION erwarten einen Dateinamen als Parameter.
SAVESELECTION gibt es auch in den Varianten SAVESELECTIONA für Ansi und SAVESELECTIONW für Widestring (Unicode UTF-16).

Die cm_Befehle sind fürs Menü gedacht, und können keine Parameter akzeptieren.
Author of Total Commander
https://www.ghisler.com
andry81
Junior Member
Junior Member
Posts: 97
Joined: 2018-11-22, 19:17 UTC

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *andry81 »

Whit out showing any file save or load dialog!!!
You can install `tacklebar` extension: viewtopic.php?f=6&t=73390

There is a button to save/load selection to/from saveload slot (a utf-8/utf-16le file).
cm_SaveSelection=530;Temporarily save selection
cm_SaveSelectionToFile=2031;Save file selection to file
cm_SaveSelectionToFileA=2041;Save file selection to file (ANSI)
cm_SaveSelectionToFileW=2042;Save file selection to file (Unicode)
cm_SaveDetailsToFile=2039;Save all shown columns to file
cm_SaveDetailsToFileA=2043;Save all shown columns to file (ANSI)
cm_SaveDetailsToFileW=2044;Save all shown columns to file (Unicode)
cm_LoadSelectionFromFile=2032;Read file selection from file
The slot files can be edited from the same buttons bar by the Notepad++ (installs by `tacklebar--external_tools`), where you can change/convert the encoding from/to UTF and whatever you want.
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *LonerD »

Support++
Now we have a lot cm_ commands with parameters, so it's time for SaveSelection and especially for SaveDetails.
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *ghisler(Author) »

There is already SAVESELECTION and LOADSELECTION with A and W variations, just use that instead.
Author of Total Commander
https://www.ghisler.com
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *LonerD »

ghisler(Author) wrote: 2023-06-08, 08:59 UTC There is already SAVESELECTION and LOADSELECTION with A and W variations, just use that instead.
But they still can't save all columns content.
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *ghisler(Author) »

There is SAVEDETAILS for that.
Author of Total Commander
https://www.ghisler.com
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *LonerD »

Thank you. :D
TC has a lot potential and it's not always possible to find a desired option that already implemented.
We really need forum section "Satisfied requests" for threads like this.
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_Save... cm_Load..., please allow file path as parameter

Post by *ghisler(Author) »

There is a section of commands with parameters in the command choose dialog, e.g. when you click on the magnifying glass icon in the button bar configuration. These are commands which require a parameter, or will immediately ask for the missing parameter.

Only recently I have added the possibility to use optional parameters with CM_* commands. These are documented in the help of the above dialog.
Commands like SAVEDETAILS have existed before I added this possibility to use CM_* commands with parameters.
Author of Total Commander
https://www.ghisler.com
Post Reply