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

Here you can propose new features, make suggestions etc.

Moderators: white, sheep, Hacker, Stefan2

Post Reply
User avatar
Stefan2
Power Member
Power Member
Posts: 3201
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: 1391
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
Member
Member
Posts: 170
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 9.21A
Failix
Junior Member
Junior Member
Posts: 32
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: 41001
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
http://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: 41001
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
http://www.ghisler.com
andry81
Junior Member
Junior Member
Posts: 67
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.
Post Reply