檢視當前ooo文件型別的巨集

2021-06-09 18:20:03 字數 428 閱讀 7764

sub detecttype()

dim mediadescr(3) as new com.sun.star.beans.propertyvalue

docurl = thiscomponent.geturl()

mediadescr(0).name = "url"

mediadescr(0).value = docurl

typemgr = createunoservice("com.sun.star.document.typedetection")

'make deep type detection (not just based on filename extension)

msgbox typemgr.querytypebydescriptor(mediadescr(), true)

end sub

檢視當前使用的shell

來自 ps grep awk 實時 不帶引數的ps命令顯示和當前終端有關的程序狀況 變數儲存當前程序的pid ps第四列是程序所使用的命令,如果是shell,那麼顯示shell名,比如sh ksh等 awk 就是只顯示第四列的值 ps 用echo shell可以檢視系統預設的shell 檢視當前發行...

檢視當前使用的shell

來自 ps grep awk 實時 不帶引數的ps命令顯示和當前終端有關的程序狀況 變數儲存當前程序的pid ps第四列是程序所使用的命令,如果是shell,那麼顯示shell名,比如sh ksh等 awk 就是只顯示第四列的值 ps 用echo shell可以檢視系統預設的shell 檢視當前發行...

檢視當前使用的shell

1 實時檢視當前程序中使用的shell種類 推薦 ps grep awk 注 表示shell的程序號 2 最常用的檢視shell的命令,但不能實時反映當前shell echo shell 3 更簡潔,但並不是所有shell都支援 echo 0 4 環境變數中shell的匹配查詢 env grep s...