Tema: Re: kopijavimo skriptas
Autorius: m.k.
Data: 2009-02-12 15:30:17
Ta prasme

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

P.S. dekuj :)

"Kazius" <nospam@nomail.no> wrote in message 
news:gmun72$5qh$1@trimpas.omnitel.net...
> jeigu toks failas bus, tai prompte paklaus ar rasyti ant virsaus ir 
> skriptas sustos
> jeigu gale komandos parasysi "/Y" tai nieko neklausdmas uzrasys ant 
> virsaus
> jeigu nori praleist reikia naudot IF EXIST / IF NOT EXIST
>
> beje, gale failo uzdes ne tik data bet ir laika, tai jeigu leisi ne ta 
> pacia sekunde tai visada sukurs naujus failus :)
>
> K.
>
> "m.k." <m.kulikauskas@lrtc.lt> wrote in message 
> news:gmummh$4sm$1@trimpas.omnitel.net...
>> supratau.,dekuj :) o cia jis perrasys failus ant virsaus senu failu jei 
>> leisiu sy skripta kasdien? Nes ji reik padaryt automatizuota kad kasdien 
>> backup darytu
>>
>>
>> "Kazius" <nospam@nomail.no> wrote in message 
>> news:gmulvr$3lc$1@trimpas.omnitel.net...
>>> tai cia tik pvz pamastymui :)
>>> ok, ziurek i sita eilute:
>>>
>>> COPY %Loghome%\*.log
>>> %ArchiveLog%\*%wazdate:~10,4%%wazdate:~4,2%%wazdate:~7,2%_%waztime:~0,2%%waztime:~3,2%%waztime:~6,2%.logLoghome 
>>> butu source, o ArchiveLog butu dest.K."m.k." <m.kulikauskas@lrtc.lt> 
>>> wrote in messagenews:gmuihp$t8j$1@trimpas.omnitel.net...> tiesa kurioj 
>>> cia vietoj pakeisti source ir destination ? Ta prasme, vieta,is kurios 
>>> kopijuos ir vieta, i kuria kopijuos ?> "Kazius" <nospam@nomail.no> wrote 
>>> in messagenews:gmrdfd$qu0$1@trimpas.omnitel.net...>> 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 
>>> messagenews: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 jupavadinimu pridedamas 
>>> data? Konkreciai tai is tinklo kaskokio folderio idisko koki nors 
>>> folderi...pvz:>>> \\192.168.254.1\diskas\*.* -> c:\backup\*-20090209.*. 
>>> Esu programines suC++ bet tik pradmenis (masyvus, kazkiek objektini) bet 
>>> net neissivaizduojuka cia daryt...gal cia koki *.BAT failiuka parasyt 
>>> lengviau ?>>>>>>>>>
>>>
>>
>>
>
>