首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Server2go应用中动态分配BrowserPath?

如何在Server2go应用中动态分配BrowserPath?
EN

Stack Overflow用户
提问于 2012-07-06 04:46:52
回答 1查看 1.8K关注 0票数 1

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

代码语言:javascript
复制
[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=

有没有什么方法可以让驱动器号由环境变量来标识?

提前感谢您的帮助:)。

EN

回答 1

Stack Overflow用户

发布于 2013-10-21 01:43:57

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

您可以省略驱动器号:

代码语言:javascript
复制
BrowserPath=FirefoxPortable/FirefoxPortable.EXE
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11352319

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档