1

这是我关于堆栈溢出的第一篇文章。我在笔式驱动器上使用 Server2go 和 Portable Firefox。Server2go 中有一个名为 pms_config.ini 的配置文件。有一行允许您指定要使用的浏览器的路径。无论如何要获取USB的驱动器号,以便我可以将它动态包含在配置文件中?

[Browser]
;--- The browser that is started after server start (possible values: IEXPLORER,    FIREFOX, PORTABLEFIREFOX, MOZILLA, DEFAULT, EXTERNAL)
;--- Please take a look at the www.server2go-web.de/wiki pages for a documentation how to use PORTABLEFIREFOX!!!!!!!!
BrowserType=PORTABLEFIREFOX
;--- Browser command options like -k (NOT IN USE AT THE MOMENT)
BrowserCommandOptions=
;--- Path to an external browser that is used instead the browser above
BrowserPath=G:\FirefoxPortable\FirefoxPortable.exe 
;--- Specify caption text of Work Offline dialog box. You can use mor than one captions     (seperated with ;)
;--- The captions for german, english, french, dutch and spanish are build in by   default
WorkOfflineTitle=
;--- The size of the started browser. Can be a pixel dimension (1024x768) or the values MAXIMIZE and KIOSK (Internet Explorer only)
BrowserSize=

无论如何我可以使驱动器号由环境变量识别吗?

提前谢谢你的帮助 :)。

4

1 回答 1

1

来自关于使用 Portable Firefox 的 Server2Go 文档: https ://bitbucket.org/thaberkern/server2go/wiki/Using%20FirefoxPortable%20as%20browser%20from%20CD

您可以省略驱动器号:

BrowserPath=FirefoxPortable/FirefoxPortable.EXE
于 2013-10-20T17:43:57.357 回答