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
Tol!k



PostPosted: Thu Apr 14, 2011 23:20    Post subject: Reply with quote

Code:
@echo off &chcp 1251 >nul &setlocal enableextensions
for /f "delims=:" %%s in ('attrib "%~1"') do call :c "%~1" %2 "%%s"
goto :eof
rem Переключение атрибута файла
rem Автор: Tol!k
rem Пример параметров: %P%N r
:c
set "attr=%~3"
echo,"%attr:~0,-2%" |findstr /ic:%2 &&attrib -%2 %1 ||attrib +%2 %1
goto :eof
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group