Hello ,
I have a question
can I wirte a script that change it content at first installation?
I have this line in my script :
:log warning “this file have upload on - 1.1.16”
now I want to upload the all script and change the data time with this:
:local date [/system clock get date]
and then to put in the script
:log warning “this file have upload on - $date”
You should ask in the Scripting sub-forum instead.
Or maybe a moderator can move this thread?
Well, without a better example of the code you want to change, it will be a little hard to help.
But it is possible to change a script using a script I guess.
Something like this maybe:
/system script
:local oScript [find name="script1"]
set $oScript source=("# A new first line!\r\n" . [get $oScript source])