wppr wrote: [the dialogue gives the name of the selected item + &P before it!]
Correct Param is %P
instead of &P
Param=?%P%O
? means: show the dialog so the user can see whats happend and modify if he wants
%P means: path of the selected file
%O means: file name-part of the selected file (without the extension)
%N means: whole file name of the selected file
Press F1 while in button setup dialog for more.
I write 'asd'.
And it creates just a file named asd. No extension. No nothing.
I'd say there's a mistake in the command line. Or i did something all wrong.
NO, that's fine. You have to add f.ex. ".txt" your own. So you are flexible.
OR... you could use f.ex.:
%P%O
.txT
And while hover f.ex. over "TOTALCMD
.EXE" you would get an new file "TOTALCMD
.txT"
(Great f.ex. to create description text files for downloaded EXEs or archives)
If you add this '?' again as first char to "?%P%O.txt"
you see the dialog again and have the change to modify the name of the new file.
--------
For the fine putfile you can use:
Code: Select all
[em_NewFilePUTFILE] ; file 'editor' with path to editor
cmd=%commander_path%\Plugins\NewFilePutFile\putfile.exe
Param=?%O
button=
You can modify this '?' and '%O' as you like. See help.
Or use the build-in feature "Shift+F4" to create a new file and open it with an editor.
The editor could be set in the TC-preferences "Viewer/Editor"
If you press "Shift+F4" while over an other file, the this name is suggested in the dialog-box.
-----------------------------
One more thing:
Is there a quick way to copy the location of current dir, without using the command line?
I always have to click the bar which shows this (just above the file list) twice, and then copy...
Don't fear to open an new threat for each single question. (First search the forum with different keywords)
Look in the "TOTALCMD.INC" file for all commands.
Search for "cm_CopyToClipboard" and another.
With this commands you can create buttons, or assign an short cut, or add it to the menu like:
Code: Select all
MENUITEM "...&Dateinamen", cm_CopyNamesToClip
MENUITEM "...Dateinamen mit &Pfad", cm_CopyFullNamesToClip
MENUITEM "...Dateinamen mit &UNC-Pfad", cm_CopyNetNamesToClip