Code: Select all
[em_folder]
cmd=OPENBARMENU %COMMANDER_PATH%\DIR.BAR
menu="Create directory"
But this is not convenient to use.
For the button to work properly, you need another command that will show a drop-down menu,
for example: OPENBARPOPUP <filename>.
Or is there another way without third-party utilities?
Spoiler
Code: Select all
[em_folder]
cmd=OPENBARMENU %COMMANDER_PATH%\DIR.BAR
menu="Create directory"
[em_fold1]
cmd=%comspec% /c md
param=""%O""
menu=With the file name under the cursor
[/spoiler]
[em_fold2]
cmd=%comspec% /v:on /c
param=for %%i in (%S) do set mdd=%%~ti && md ^"%P"!mdd:~6,4!-!mdd:~3,2!-!mdd:~0,2!^
menu="With the date name of the selected objects"
WCMD_RUS.INI:
Code: Select all
[em_folder]
cmd=OPENBARMENU %COMMANDER_PATH%\DIR.BAR
menu="Создать каталог"
[em_fold1]
cmd=%comspec% /c md
param=""%O""
menu=С именем файла под курсором
[em_fold2]
cmd=%comspec% /v:on /c
param=for %%i in (%S) do set mdd=%%~ti && md ^"%P"!mdd:~6,4!-!mdd:~3,2!-!mdd:~0,2!^
menu="С именем даты выделенных объектов"
DIR.BAR:
Code: Select all
[Buttonbar]
Buttoncount=3
button1=wcmicons.dll,20
cmd1=cm_MkDir
iconic1=0
button2=wcmicons.dll,20
cmd2=em_fold1
iconic2=1
button3=wcmicons.dll,20
cmd3=em_fold2
iconic3=1