標題: 【RouterOS】—— Full Screen Editor [打印本頁] 作者: 角色 時間: 2014-12-28 12:38 標題: 【RouterOS】—— Full Screen Editor
Whenever you need write scripts on your RouterOS, you may need to prepare your scripts on Windows programs such as Notepad or other applications which allow to write your own scripts. Once scripts are completed, you need to move them onto your RouterOS terminal windows (/file folder). Whenever you have problems in your scripts, you need to repeat the same process to re-edit your scripts and move them to the RouterOS /file again.
You can get rid of the above process using the following command
1. Create of a script in /file folder (just printing the current contents to a file named myFile)
/file
print file=myFile
複製代碼
2. Empty of the file myFile
/file set myFile.txt contents=""
複製代碼
3. Start to edit the file myFile
/file edit myFile.txt
value-name (just press <Enter> key to continue
複製代碼
4. A full-screen editor giving you to edit the file myFile.txt and press <CTRL>+<o> to save and exit the full-screen editing mode作者: vpn-learner 時間: 2018-2-23 00:41
should the script be saved as *.txt format or *.rsc format??
or it doesn't matter?作者: 角色 時間: 2018-2-23 00:55
In general I would like to prefer .txt format to .rsc format. I am sorry that I forgot the use of .rsc format.作者: gfx86674 時間: 2018-2-23 02:20