Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Обмен кнопками 
Author Message
gora



PostPosted: Sat Apr 24, 2010 13:45    Post subject: Reply with quote

garmonist

Вариант с батником:
Файл Rar_unRAR.bat
Code:
Set PathRAR="c:\Program Files\WinRAR\WinRAR.exe"
If %2#==B# (
   If Not Exist "%cd%\X-ARC\" MD "%cd%\X-ARC\"
   %PathRAR% a -dh -m3 -ag"_[yyyy.mm.dd hh.mm.ss]" "%cd%\X-ARC\%~n1.rar" "%~1"
) Else (
   If Not Exist "%cd%\%~n1\" MD "%cd%\%~n1\"
   %PathRAR% x "%~1" "%cd%\%~n1\"
   For %%I In ("%cd%\%~n1\*") Do Ren "%%I" "%~n1%%~xI"
)
И две кнопки:
- Бекап:
Code:
TOTALCMD#BAR#DATA
%commander_path%\Utilites\Rar_unRAR.bat
%N B
%commander_path%\WCMICONS.DLL,30
Бекап

1
-1

- Восстановить:
Code:
TOTALCMD#BAR#DATA
%commander_path%\Utilites\Rar_unRAR.bat
%N
%commander_path%\WCMICONS.DLL,31
Восстановить

1
-1

_________________
Win7 SP1 Ultimate x64, TC8.52a x64
View user's profile Send private message ICQ Number


Powered by phpBB © 2001, 2005 phpBB Group