命令行參數
BandiView.EXE 提供以下命令行參數
# BandiView.exe <file_or_folder1> <file_or_folder2> [...]
# BandiView.exe <command> [<switches>...] <file_or_folder> [<file_or_folder>...]
file_or_folder
使用圖片檔案的路徑、圖片所在的資料夾或壓縮檔案(例如 ZIP、7Z、RAR 檔案)。
command
可以使用以下命令:
| /open | 開啟圖像檔案(可選) |
| /setup | 開啟設定 |
| /nop | 不操作 |
| /cmdfile | 從指定檔案中讀取命令行 |
| /conv | Open the Image Converter |
switches
可以使用以下開關:
| - | 停止開關解析。以下將以“-”開頭的參數視為路徑名 |
| -fg | 置頂窗口 |
| -maximize | 以最大化窗口運行程式 |
| -fullscreen | 全屏運行程式 |
| -rect:A,B,C,D |
Move the app window to fit the defined rectangle e.g. BandiView -rect:0,0,1000,500 |
| -r | 遞歸子目錄 開啟指定資料夾及其子資料夾中的所有檔案 |
| -L | Follow a link Read and process the file (or folder) which the LNK file points to |
| -p:{password} | 輸入密碼開啟加密檔案 |
| -mode:{MODE} |
指定視圖模式。 可用模式: fit2window, 100, fit2width, l2r, r2l, webtoon |
| -ss -ss:{time} |
開始幻燈片放映 例如: BandiView.exe -ss:3.5 c:\photos\ |
| -page:{page_idx} | 跳轉至指定頁 |
| -select:{path_name} |
選擇指定檔案 例如: BandiView.exe /open -select:c:\image\2.jpg c:\image\1.jpg c:\image\2.jpg BandiView.exe /open -select:c:\image\a.zip|1.jpg c:\image\1.jpg c:\image\a.zip |
示例
開啟圖片或位於資料夾或壓縮包中的圖片。
BandiView /open c:\folder\image.jpg
BandiView c:\folder\image.jpg
BandiView c:\folder\images.zip
BandiView c:\folder
使用剪貼板:而不是檔案路徑開啟存儲在剪貼板中的圖像。
支持位圖數據、從資源管理器(Ctrl+C)複製的圖像和文本檔案路徑名。
BandiView /open clipboard:
使用 | (管道)開啟圖像。
type c:\temp\test.jpg | "C:\Program Files\BandiView\BandiView.exe"
magick.exe test.jpg png: | "C:\Program Files\BandiView\BandiView.exe"
指定多個資料夾並開啟所有資料夾中的檔案。
BandiView c:\folder1\ d:\folder2\ e:\folder3
開啟指定資料夾及其子資料夾中的所有檔案。
BandiView -r c:\folder
開啟加密壓縮包中的檔案。 需輸入正確的密碼。
BandiView -p:password c:\folder\pass.zip
指定查看模式並開啟檔案。
BandiView -mode:fit2window c:\folder\test.jpg
以全屏開始幻燈片放映,每張幻燈片的持續 10 秒。
BandiView -fullscreen -ss:10 c:\photos\
從指定檔案讀取並執行命令行。
BandiView /cmdfile "c:\my commandline file.txt"
開啓資料夾中的第一個檔案。
BandiView -page:0 c:\photos\
開啓資料夾中的第三個檔案。
BandiView -page:2 c:\photos\
開啓資料夾內1000個檔案中的任意檔案。
set /a num=%random% * 1000 / 32768
BandiView -page:%num% c:\photos\
Open the Image Converter.
BandiView.exe /conv
BandiView.exe /conv "c:\image folder"