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 

Расчет контрольной суммы CRC
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Total Commander Forum Index -> Автоматизация Total Commander printer-friendly view
View previous topic :: View next topic  
Author Message
Flasher



Joined: 06 Nov 2009
Posts: 14229
Location: Москва

Post (Separately) Posted: Fri Jul 26, 2019 12:33    Post subject: Reply with quote

Батник по запросу (кнопкой не совсем выходит вытащить имя родителя):
Code:
:::::::::::::::::::::::: BAT ::::::::::::::::::::::::
:: Создание/перезапись хэш-файла для выбранных файлов
:: Условие:   путь запуска — пустой
:: Параметры: "%UL" <хэш-формат>
:: Пример:    "%UL" sha1
:::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off&setlocal enabledelayedexpansion
if "%~1"=="" exit
if %~2==sha1 (set ext=sha) else set ext=%~2
if "!cd!"=="!cd:~,3!" (set "d=!cd:~,1!") else (
  set "d=%cd%"
  for %%i in ("!d!\..\") do set "d=!d:%%~pi=!"
  set "d=!d:~2!"
)
"!COMMANDER_PATH!\Utils\RHash\rhash.exe" -i -p"%%{%~2} *%%f\n" --file-list="%~1" -o "!d!.!ext!"
Путь к rhash пишем свой.

Кнопка с подстановочным именем:
Quote:
TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\RHash\rhash.exe -i -p"%{sha1} *%f\n"
--file-list="%UL" -o CRC.
sha
wcmicons.dll,61
Подсчитать
sha для выбранных файлов

1
RHash.
_________________
Автору сборки TC Image (Andrey_A) настоятельно рекомендуется не распространять на иных ресурсах любую предоставленную мной где-либо техническую информацию по автоматизации и оптимизации в работе с ТС и системой.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Автоматизация Total Commander All times are GMT + 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group