Автор: Serge2005
Дата сообщения: 10.04.2006 10:56
jak_forest
Вот:
1) Исходный файл: default_eng.bar
[more]
[Buttonbar]
Buttoncount=62
button1=%ProgramFiles%\Winamp\winamp.exe,3
cmd1=%ProgramFiles%\Winamp\winamp.exe
path1=%ProgramFiles%\Winamp\
iconic1=1
menu1=WinAmp
button2=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe,6
cmd2=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe
param2=prev
path2=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\
menu2=Previous Track
button3=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe,9
cmd3=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe
param3=play
path3=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\
menu3=Play
button4=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe,8
cmd4=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe
param4=pause
path4=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\
menu4=Pause
button5=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe,13
cmd5=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe
param5=stop
path5=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\
menu5=Stop
button6=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe,4
cmd6=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe
param6=next
path6=%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\
menu6=Next Track
button7=
button8=%Commander_path%\icons\icons01.icl,42
cmd8=cm_Rereadsource
button9=%Commander_path%\icons\icons01.icl,45
cmd9=cm_CDtree
button10=%Commander_path%\icons\icons01.icl,58
cmd10=cm_SrcComments
button11=%Commander_path%\icons\icons01.icl,47
cmd11=cm_srcshort
button12=%Commander_path%\icons\icons01.icl,48
cmd12=cm_srclong
button13=%Commander_path%\icons\icons01.icl,17
cmd13=cm_SrcCustomView1
menu13=MP3-info
button14=%Commander_path%\icons\icons01.icl,18
cmd14=cm_SrcCustomView2
menu14=Video-info
button15=%Commander_path%\icons\icons01.icl,19
cmd15=cm_SrcCustomView3
menu15=Foto-info (EXIF)
button16=shell32.dll,19
cmd16=cm_SrcThumbs
button17=%Commander_path%\icons\icons01.icl,43
cmd17=cm_SrcQuickview
button18=
button19=%Commander_path%\icons\icons01.icl,62
cmd19=cm_GotoPreviousDir
button20=%Commander_path%\icons\icons01.icl,63
cmd20=cm_GotoNextDir
button21=
button22=%Commander_path%\icons\icons01.icl,60
cmd22=cm_FtpConnect
button23=%Commander_path%\icons\icons01.icl,61
cmd23=cm_FtpNew
button24=
button25=%Commander_path%\icons\icons01.icl,32
cmd25=notepad.exe
menu25=Notepad
button26=write.exe
cmd26=write.exe
menu26=WordPad
button27=%Commander_path%\icons\icons01.icl,34
cmd27=mspaint.exe
menu27=Paint
button28=
button29=%ProgramFiles%\Ahead\Nero StartSmart\NeroStartSmart.exe
cmd29=%ProgramFiles%\Ahead\Nero StartSmart\NeroStartSmart.exe
path29=%ProgramFiles%\Ahead\Nero StartSmart\
menu29=Nero StartSmart
button30=%ProgramFiles%\Opera\Opera.exe
cmd30=%ProgramFiles%\Opera\Opera.exe
path30=%ProgramFiles%\Opera\
menu30=Opera
button31=%SystemRoot%\CalcPlusE.exe
cmd31=%SystemRoot%\CalcPlusE.exe
path31=%SystemRoot%\
menu31=Calculator Plus (eng)
button32=
button33=mydocs.dll
cmd33=cd %$PERSONAL%
menu33=My Documents
button34=
button35=rcimlby.exe
cmd35=rcimlby.exe
param35=-LaunchRA
menu35=Remote Helper
button36=%Commander_path%\icons\icons01.icl,25
cmd36=msconfig.exe
menu36=Specific settings of system (msconfig)
button37=icons\icons01.icl,20
cmd37=cd \\\UnInstaller
menu37=Program uninstall
button38=Plugins\wfx_ProcFS_2.0\PROCFS.wfx
cmd38=cd \\\Task manager
menu38=Current Processes
button39=Plugins\wfx_devman_1.4\DevMan.wfx
cmd39=cd \\\Device Manager
menu39=Device Manager
button40=%Commander_path%\icons\icons01.icl,80
cmd40=%WINDIR%\system32\devmgmt.msc
param40=/a
path40=%WINDIR%\system32\
menu40=Device Manager (devmgmt.msc)
button41=Plugins\wfx_StartupGuard\StartupGuard.wfx
cmd41=cd \\\Startup Guard
menu41=List of Autorun
button42=Plugins\wfx_registry_2.6.1\registry.wfx
cmd42=cd \\\Registry
menu42=Register Editing
button43=%Commander_path%\icons\icons01.icl,35
cmd43=regedit.exe
menu43=Register Editor
button44=
button45=%Commander_path%\icons\icons01.icl,40
cmd45=control sysdm.cpl,,0
menu45=My Computer: Properties
button46=%Commander_path%\icons\icons01.icl,26
cmd46=control DESK.CPL,,3
menu46=Screen: Properties
button47=%Commander_path%\icons\icons01.icl,79
cmd47=control inetcpl.cpl,,0
menu47=Internet Explorer: Properties
button48=%Commander_path%\icons\icons01.icl,64
cmd48=control.exe
menu48=Control Panel
button49=%Commander_path%\icons\icons01.icl,78
cmd49=control ncpa.cpl,,0
menu49=Network Connections
button50=%Commander_path%\icons\icons01.icl,31
cmd50=control Mmsys.cpl,,4
menu50=Multimedia
button51=
button52=%Commander_path%\icons\icons01.icl,74
cmd52=cm_SearchFor
button53=%Commander_path%\icons\icons01.icl,49
cmd53=cm_MultiRenameFiles
button54=%Commander_path%\icons\icons01.icl,24
cmd54=cm_CompareFilesByContent
button55=%Commander_path%\icons\icons01.icl,30
cmd55=cm_SetAttrib
button56=E:\Program Files\Total Commander 6.54 rus\icons\icons01.icl,81
cmd56=cm_FileSync
button57=%Commander_path%\icons\icons01.icl,39
cmd57=cm_Split
button58=%Commander_path%\icons\icons01.icl,23
cmd58=cm_Combine
button59=%Commander_path%\icons\icons01.icl,33
cmd59=cm_PackFiles
button60=%Commander_path%\icons\icons01.icl,41
cmd60=cm_UnpackFiles
button61=%Commander_path%\icons\icons01.icl,15
cmd61=cm_CopyNamesToClip
button62=%Commander_path%\icons\icons01.icl,16
cmd62=cm_CopyNetNamesToClip
[/more]
2) Скрипт: 02.cmd
[more]
del /q /s file1.txt > nul 2>&1
for /F "delims== tokens=1,*" %%i in (default_eng.bar) do call :A %%i "%%j"
goto :eof
:A
set L=%1
set M=%~2
if "%M%"=="%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe,6" call :L1 %L%
if "%M%"=="%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe,9" call :L2 %L%
if "%M%"=="%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe,8" call :L3 %L%
if "%M%"=="%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe,13" call :L4 %L%
if "%M%"=="%Commander_path%\Plugins\wfx_TWinAmp2_1.5.2\WAC.exe,4" call :L5 %L%
if "%M%"=="cm_SrcCustomView1" call :L6 %L%
if "%M%"=="cm_SrcCustomView2" call :L7 %L%
if "%M%"=="cm_SrcCustomView3" call :L8 %L%
if "%M%"=="notepad.exe" call :L9 %L%
if "%M%"=="%SystemRoot%\CalcPlusR.exe" call :L10 %L%
if "%M%"=="cd %$PERSONAL%" call :L11 %L%
if "%M%"=="rcimlby.exe" call :L12 %L%
if "%M%"=="msconfig.exe" call :L13 %L%
if "%M%"=="cd \\\UnInstaller" call :L14 %L%
if "%M%"=="cd \\\Task manager" call :L15 %L%
if "%M%"=="cd \\\Device Manager" call :L16 %L%
if "%M%"=="%WINDIR%\system32\devmgmt.msc" call :L17 %L%
if "%M%"=="cd \\\Startup Guard" call :L18 %L%
if "%M%"=="cd \\\Registry" call :L19 %L%
if "%M%"=="regedit.exe" call :L20 %L%
if "%M%"=="control sysdm.cpl,,0" call :L21 %L%
if "%M%"=="control DESK.CPL,,3" call :L22 %L%
if "%M%"=="control inetcpl.cpl,,0" call :L23 %L%
if "%M%"=="control.exe" call :L24 %L%
if "%M%"=="control ncpa.cpl,,0" call :L25 %L%
if "%M%"=="control Mmsys.cpl,,4" call :L26 %L%
goto :eof
:L1
set N=%1
set N=%N:button=menu%
echo %N%=Предыдущий трек>> file1.txt
goto :eof
:L2
set N=%1
set N=%N:button=menu%
echo %N%=Воспроизведение>> file1.txt
goto :eof
:L3
set N=%1
set N=%N:button=menu%
echo %N%=Пауза>> file1.txt
goto :eof
:L4
set N=%1
set N=%N:button=menu%
echo %N%=Стоп>> file1.txt
goto :eof
:L5
set N=%1
set N=%N:button=menu%
echo %N%=Следующий трек>> file1.txt
goto :eof
:L6
set N=%1
set N=%N:cmd=menu%
echo %N%=MP3-инфо>> file1.txt
goto :eof
:L7
set N=%1
set N=%N:cmd=menu%
echo %N%=Видео-инфо>> file1.txt
goto :eof
:L8
set N=%1
set N=%N:cmd=menu%
echo %N%=Фото-инфо (EXIF)>> file1.txt
goto :eof
:L9
set N=%1
set N=%N:cmd=menu%
echo %N%=Блокнот>> file1.txt
goto :eof
:L10
set N=%1
set N=%N:cmd=menu%
echo %N%=Калькулятор Плюс (rus)>> file1.txt
set N2=%1
echo %N2%=%SystemRoot%\CalcPlusR.exe>> file1.txt
set N3=%1
set N3=%N3:cmd=button%
echo %N3%=%SystemRoot%\CalcPlusR.exe>> file1.txt
goto :eof
:L11
set N=%1
set N=%N:cmd=menu%
echo %N%=Мои документы>> file1.txt
goto :eof
:L12
set N=%1
set N=%N:cmd=menu%
echo %N%=Удаленный помощник>> file1.txt
goto :eof
:L13
set N=%1
set N=%N:cmd=menu%
echo %N%=Настройка системы (msconfig)>> file1.txt
goto :eof
:L14
set N=%1
set N=%N:cmd=menu%
echo %N%=Установка и удаление программ>> file1.txt
goto :eof
:L15
set N=%1
set N=%N:cmd=menu%
echo %N%=Запущенные процессы>> file1.txt
goto :eof
:L16
set N=%1
set N=%N:cmd=menu%
echo %N%=Диспетчер устройств>> file1.txt
goto :eof
:L17
set N=%1
set N=%N:cmd=menu%
echo %N%=Диспечер устройств (devmgmt.msc)>> file1.txt
goto :eof
:L18
set N=%1
set N=%N:cmd=menu%
echo %N%=Просмотр автозагрузки>> file1.txt
goto :eof
:L19
set N=%1
set N=%N:cmd=menu%
echo %N%=Редактирование реестра>> file1.txt
goto :eof
:L20
set N=%1
set N=%N:cmd=menu%
echo %N%=Редактор реестра>> file1.txt
goto :eof
:L21
set N=%1
set N=%N:cmd=menu%
echo %N%=Мой компьютер: Свойства>> file1.txt
goto :eof
:L22
set N=%1
set N=%N:cmd=menu%
echo %N%=Экран: Свойства>> file1.txt
goto :eof
:L23
set N=%1
set N=%N:cmd=menu%
echo %N%=Internet Explorer: Свойства>> file1.txt
goto :eof
:L24
set N=%1
set N=%N:cmd=menu%
echo %N%=Панель управления>> file1.txt
goto :eof
:L25
set N=%1
set N=%N:cmd=menu%
echo %N%=Сетевые подключения>> file1.txt
goto :eof
:L26
set N=%1
set N=%N:cmd=menu%
echo %N%=Мультимедиа>> file1.txt
goto :eof
[/more]
Это работает, но очень долго. Есть вариант упростить? Ускорить?