Page 1 of 1

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

Posted: 2015-05-15, 11:19 UTC
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


 

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

Posted: 2015-05-15, 11:55 UTC
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)

Wunsch: Neuer Befehl mit Parameter zum Laden einer Auswahl

Posted: 2016-06-18, 09:35 UTC
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.

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

Posted: 2019-02-18, 08:45 UTC
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

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

Posted: 2019-02-18, 15:05 UTC
by ghisler(Author)
Nein, gibt es noch nicht - ich nehme es auf meine ToDo-Liste.

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

Posted: 2021-05-04, 12:11 UTC
by Christian_S
Gibt es inzwischen eine Möglichkeit einen vorgeschlagenen/fixen Pfad vorzugeben?

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

Posted: 2021-05-05, 13:14 UTC
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.

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

Posted: 2021-05-05, 14:56 UTC
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.

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

Posted: 2023-06-08, 08:39 UTC
by LonerD
Support++
Now we have a lot cm_ commands with parameters, so it's time for SaveSelection and especially for SaveDetails.

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

Posted: 2023-06-08, 08:59 UTC
by ghisler(Author)
There is already SAVESELECTION and LOADSELECTION with A and W variations, just use that instead.

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

Posted: 2023-06-08, 09:36 UTC
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.

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

Posted: 2023-06-08, 10:05 UTC
by ghisler(Author)
There is SAVEDETAILS for that.

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

Posted: 2023-06-08, 11:31 UTC
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.

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

Posted: 2023-06-09, 08:57 UTC
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.