Tema: Re: kopijavimo skriptas
Autorius: Kazius
Data: 2009-02-10 10:22:05
Gal kazkas tokio tiks:

@echo off

set Loghome=B:\JobSched\Log

set ArchiveLog=B:\JobSched\Log\Test

set Errhome=B:\JobSched\error

set ArchiveError=B:\JobSched\error\Test

set waztime=%TIME%

set wazdate=%DATE%

echo %wazdate%

echo %wazdate:~10,4%%wazdate:~4,2%%wazdate:~7,2%

echo %waztime%

echo %waztime:~0,2%%waztime:~3,2%%waztime:~6,2%

COPY %Loghome%\*.log 
%ArchiveLog%\*%wazdate:~10,4%%wazdate:~4,2%%wazdate:~7,2%_%waztime:~0,2%%waztime:~3,2%%waztime:~6,2%.log
COPY    %Errhome%\*.err 
%ArchiveError%\*%wazdate:~10,4%%wazdate:~4,2%%wazdate:~7,2%_%waztime:~0,2%%waztime:~3,2%%waztime:~6,2%.err

end: return.




"m.k." <m.kulikauskas@lrtc.lt> wrote in message 
news:gmr40j$df3$1@trimpas.omnitel.net...
> Sveiki. Gal galit uzvest ant kelio kaip parasyt skriptuka (*.exe) faila, 
> kuris kopijuotu visus failus is vienos direktorijos i kita, prie ju 
> pavadinimu pridedamas data? Konkreciai tai is tinklo kaskokio folderio i 
> disko koki nors folderi...pvz:
> \\192.168.254.1\diskas\*.* -> c:\backup\*-20090209.*. Esu programines su 
> C++ bet tik pradmenis (masyvus, kazkiek objektini) bet net neissivaizduoju 
> ka cia daryt...gal cia koki *.BAT failiuka parasyt lengviau ?
>