返回列表 發帖

【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)
  1. /file
  2. print file=myFile
複製代碼
2. Empty of the file myFile
  1. /file set myFile.txt contents=""
複製代碼
3. Start to edit the file myFile
  1. /file edit myFile.txt
  2. 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

In general I would like to prefer .txt format to .rsc format. I am sorry that I forgot the use of .rsc format.

TOP

返回列表