How to load a external script ?

Just to start to play with Mikrotik…

A very naive question: is there a way to load external script in order to run with scheduler ?

I’m talking about script under “/system script”, I’ve successfully add manually using the “plus” button with winbox to “system/scripts” one of my first script and I can see on the “script list” and run it.

When I tried to load another script, says “script2.rsc” from my computer , drag & drop to the system, and do: /import file=script2.rsc, but I cannot see this one from terminal "/system script print " :frowning:

I wonder if there is a way to “import” an external script file into “system script” ? or we need to do it manually by copy & paste each time to the “source window” ? or to avoid using from terminal " add name=script_sample policy=ftp,read,write,test,winbox,api source…"


Many thanks in advance for your help.

http://forum.mikrotik.com/t/transfer-file-to-mikrotik-and-run-as-script/46587/1

Additionally your script need to have add script command. See the export to get the pattern how your script should look like.