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 

Обновление файла в подпапках

 
Post new topic   Reply to topic    Total Commander Forum Index -> Общие вопросы printer-friendly view
View previous topic :: View next topic  
Author Message
Instructor



Joined: 21 Feb 2005
Posts: 20

Post (Separately) Posted: Sat Aug 22, 2009 12:47    Post subject: Обновление файла в подпапках Reply with quote

Имеется файл "1.txt" в разных подпапках. Возможно ли обновить его на более новую версию сразу во всех подпапках?

Пока проблема решалась написанной программой, но сегодня ее под рукой нету.
Back to top
View user's profile Send private message
Андрей.



Joined: 20 Aug 2009
Posts: 6

Post (Separately) Posted: Sun Aug 23, 2009 01:36    Post subject: Reply with quote

Коммандером вроде нет, но простым bat-файлом вполне. Положить его в базовой папке где все " '1.txt' в разных подпапках" и заменить <NEW_VERSION> на ваш путь.

for /F %%a in ('dir 1.txt /b /s') do (
copy <NEW_VERSION>\1.txt %%a
)
Back to top
View user's profile Send private message
Instructor



Joined: 21 Feb 2005
Posts: 20

Post (Separately) Posted: Sun Aug 23, 2009 08:45    Post subject: Reply with quote

Андрей.
Две строчки - впечатляюще Smile Благодарю!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Общие вопросы All times are GMT + 4 Hours
Page 1 of 1

 
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