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
Вахмурка



PostPosted: Mon Apr 05, 2010 15:35    Post subject: Reply with quote

Bat-скрипт Wink. Работает и для директорий и для файлов:
Code:
@echo off
cd /d %1
set P=%1

:New
if not exist %2 goto :EOF

if not exist %P%%2\nul goto File

md %P%_%2.bak
copy %P%%2\*.* %P%_%2.bak\*.*
shift
goto New

:File
copy %2 _%2.bak
shift
goto New
Параметры те же %P %S
_________________
Сайт PowerPro+Total Commander
Скрипты PowerPro для Total Commander
* * *
«Не усматривайте злого умысла в том, что вполне объяснимо глупостью» (Р. Хэнлон)
View user's profile Send private message Send e-mail Visit poster's website


Powered by phpBB © 2001, 2005 phpBB Group