cm_Save... cm_Load..., please allow file path as parameter
Moderators: Hacker, petermad, Stefan2, white
cm_Save... cm_Load..., please allow file path as parameter
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
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.
Re: cm_Save...., please allow file path as parameter
Saving the selection can be done if you copy temporary list %L %WL ...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
Loading and saving details are really missing features, (unless you accept to fill your clipboard

Loading 'download list' does not have any clip aternatives

-
- Senior Member
- Posts: 217
- Joined: 2013-06-08, 16:16 UTC
- Location: NRW, Germany
Wunsch: Neuer Befehl mit Parameter zum Laden einer Auswahl
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.
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
Commanding Win10 64bit totally with version 11
Re: cm_Save... cm_Load..., please allow file path as parameter
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
Gruß
Failix
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_Save... cm_Load..., please allow file path as parameter
Nein, gibt es noch nicht - ich nehme es auf meine ToDo-Liste.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- New Member
- Posts: 1
- Joined: 2021-04-29, 15:19 UTC
Re: cm_Save... cm_Load..., please allow file path as parameter
Gibt es inzwischen eine Möglichkeit einen vorgeschlagenen/fixen Pfad vorzugeben?
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_Save... cm_Load..., please allow file path as parameter
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.
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
https://www.ghisler.com
Re: cm_Save... cm_Load..., please allow file path as parameter
You can install `tacklebar` extension: viewtopic.php?f=6&t=73390Whit out showing any file save or load dialog!!!
There is a button to save/load selection to/from saveload slot (a utf-8/utf-16le 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.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
Re: cm_Save... cm_Load..., please allow file path as parameter
Support++
Now we have a lot cm_ commands with parameters, so it's time for SaveSelection and especially for SaveDetails.
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
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_Save... cm_Load..., please allow file path as parameter
There is already SAVESELECTION and LOADSELECTION with A and W variations, just use that instead.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: cm_Save... cm_Load..., please allow file path as parameter
But they still can't save all columns content.ghisler(Author) wrote: 2023-06-08, 08:59 UTC There is already SAVESELECTION and LOADSELECTION with A and W variations, just use that instead.
"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
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_Save... cm_Load..., please allow file path as parameter
There is SAVEDETAILS for that.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: cm_Save... cm_Load..., please allow file path as parameter
Thank you.
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.

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
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_Save... cm_Load..., please allow file path as parameter
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.
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
https://www.ghisler.com