#42969 - 2003-07-17 05:16 PM
Re: Archiving Files Append Date/Time Stamp
|
Paul Hutchins
Fresh Scripter
Registered: 2003-07-17
Posts: 9
Loc: London, England
|
So where would the following fit in my script?
code:
$datetime=join(split(@DATE,'\'),'-')+join(split(@TIME,':'),'-')
|
|
Top
|
|
|
|
#42972 - 2003-07-17 05:37 PM
Re: Archiving Files Append Date/Time Stamp
|
Paul Hutchins
Fresh Scripter
Registered: 2003-07-17
Posts: 9
Loc: London, England
|
I am using Kix32.exe v3.54.0.0, will this make a difference to the syntax as I have an error.
Also, the output file produced is FIXServer2003.7.17_join
code:
If 1=Exist("C:\new\FIXServer.log") Copy "C:\new\FIXServer.log" "C:\new\FIXServer@year.@monthno.@mdayno_"+Join(Split(@time,"_"),"").log" If @error ? "error occured: @error - @serror" ? "script will exit once you press a key" Get $ Exit 1 EndIf EndIf
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1662 anonymous users online.
|
|
|