I have this script that my friend REXTENDED made for me:
Code: Select all
:delay 10s
:global arrMonths {jan="01";feb="02";mar="03";apr="04";may="05";jun="06";jul="07";aug="08";sep="09";oct="10";nov="11";dec="12"}
:global stopRouterRun false
/system clock
:local data [get date]
:local year [:pick $data 7 11]
:local month ($arrMonths->[:pick $data 0 3])
:local day [:pick $data 4 6]
:local file "electric-cut_$year-$month-$day_$[get time].txt"
:do {
/system clock
:local data [get date]
:local year [:pick $data 7 11]
:local month ($arrMonths->[:pick $data 0 3])
:local day [:pick $data 4 6]
:local date "$day-$month-$year"
:local itime [get time]
:local hours [:pick $itime 0 2]
:local minsec [:pick $itime 2 8]
:local mhours [:tonum $hours]
:local msymbl "AM"
:if ($mhours > 11) do={:set msymbl "PM"}
:set mhours ($mhours % 12)
:if ($mhours = 0) do={:set mhours 12}
:if ($mhours < 10) do={:set mhours "0$mhours"}
:local mtime "$mhours:$minsec $msymbl"
:local data1 "****************************\r\n COURT:$date\r\n AT: $mtime\r\n****************************"
/file
:if ([:len [find where name=$file]] = 0) do={print file=$file; :delay 5; set $file contents=""}
set $file contents=$data1
:delay 60s
} while=(!$stopRouterRun)
But why can't I drag it from the file section to the desktop of my pc, and the other files if I can, can someone help me?
EL DONCITO.