I'm stuck trying to create a button with the "open new text file" command.
In the "Change button bar" window I've used the search function beside the "Command" textbox: tried "open new text file" (obviously), then tried any combination of "open", "new", "text", "file", but couldn't find the command for it.
I usually use the context menu in the files pane or the "shift-F4" shortcut, but I would like to create a button for it.
Furthermore, with said custom button (and only with it), I would like to open the new text file in unicode encoding, but leaving ANSI as system default... is that possible to do in one click only?
Thanks alot.
"New text file" (possibly unicode enc.) on button
Moderators: white, Hacker, petermad, Stefan2
Just create a template file
and an button which copy that template to the current path.
If you use '?' as first char in button parameter,
you are even prompted to be able to modify the new name.
Something like
CMD = cmd /c
PARAM = ?COPY "%Commander_PATH%\ShellNew\unicode.txt" "_newfile.txt"
http://ghisler.ch/board/viewtopic.php?t=42314
http://ghisler.ch/board/viewtopic.php?p=293931#293931
http://ghisler.ch/board/viewtopic.php?p=257610#257610
http://ghisler.ch/board/viewtopic.php?p=311702#311702
http://ghisler.ch/board/viewtopic.php?p=159869#159869
http://ghisler.ch/board/viewtopic.php?p=136381#136381
http://ghisler.ch/board/viewtopic.php?t=18671
and an button which copy that template to the current path.
If you use '?' as first char in button parameter,
you are even prompted to be able to modify the new name.
Something like
CMD = cmd /c
PARAM = ?COPY "%Commander_PATH%\ShellNew\unicode.txt" "_newfile.txt"
http://ghisler.ch/board/viewtopic.php?t=42314
http://ghisler.ch/board/viewtopic.php?p=293931#293931
http://ghisler.ch/board/viewtopic.php?p=257610#257610
http://ghisler.ch/board/viewtopic.php?p=311702#311702
http://ghisler.ch/board/viewtopic.php?p=159869#159869
http://ghisler.ch/board/viewtopic.php?p=136381#136381
http://ghisler.ch/board/viewtopic.php?t=18671
Thank you for the replies.
Roman, that is exactly the command I was looking for but it seems it's a new command in version 9. I'm still on 8.52a and cannot find it.
Stefan, I did what you suggested and it's totally Ok. The text file is created from the template and has the desired encoding.
A better search in the forum could have lead me to the solution before, as you pointed out there are several reference to this issue. Thank you.
Roman, that is exactly the command I was looking for but it seems it's a new command in version 9. I'm still on 8.52a and cannot find it.
Stefan, I did what you suggested and it's totally Ok. The text file is created from the template and has the desired encoding.
A better search in the forum could have lead me to the solution before, as you pointed out there are several reference to this issue. Thank you.