2012-07-05 68 views
1

這是我第一篇關於堆棧溢出的文章。我在Pen Drive上使用Server2go和Portable Firefox。 Server2go中有一個名爲pms_config.ini的配置文件。有一行允許您指定要使用的瀏覽器的路徑。無論如何取回USB的驅動器號,這樣我可以動態地將它包含在配置文件中?如何在Server2go應用程序中動態分配BrowserPath?

[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= 

是否有反正我可以讓驅動器號被識別的環境變量?

非常感謝您的幫助:)。

回答

相關問題