
命令列用法
*****

PortaBase可以不需藉由圖形介面直接從Linux/UNIX終端機或DOS模式下來匯入或匯出資料。在你撰寫命令稿以便自動產生、更新、或處
理PortaBase資料檔時，這一點特別有用。執行"portabase -h"可得到用法說明; 總之，你可以達成下列功能：

"portabase *file*"
   啟動 PortaBase並立即打開名為資料檔。

"portabase fromxml *xmlfile pobfile*"
   由名為*xmlfile*符合PortaBase XML格式的檔案，匯入資料成一個名為*pobfile*的新PortaBase資料檔。

"portabase fromcsv *csvfile pobfile*"
   由名為*csvfile*的CSV檔匯入資料，新增至名為*pobfile*的PortaBase資料檔。

"portabase frommobiledb *mdbfile pobfile*"
   由名為*mdbfile*的MobileDB檔案，匯入資料成一個名為*pobfile*的新PortaBase資料檔。

"portabase toxml *pobfile xmlfile*"
   由名為*pobfile*的PortaBase資料檔，將資料匯出成一個名為*xmlfile*的新XML檔。

"portabase tocsv *pobfile csvfile*"
   由名為*pobfile*的PortaBase資料檔，將資料匯出成一個名為*csvfile*的新CSV檔。

:舉例：'portabase tohtml {性能檔案 html 檔案}
   在PortaBase放在"pobfile*"裡面的資料檔案上裡面的列位表上建立一個新的HTML 檔案放在"htmlfile"。

要產生加密檔或從中取出資料或新增資料列時，緊接在轉換的命令後輸入"-p *密碼*"(在下面所述的選項之前)。

下面的選項內可以運用在 上傳檔案到PortaBase裡："toxml", "tocsv", "tohtml"。

-v view

匯出前先套用指定的景觀

-s sorting

匯出前先套用指定的排序方式

-f filter

匯出前先套用指定的篩選

有關PortaBase的XML格式與相關的工具(比如轉換至HTML)的詳細資訊，請見PortaBase首頁(http://portabase
.sourceforge.net)。
