2015-10-24 33 views
1

我有一个Webrowser,它在VB中用壁虎引擎运行。 我想在开始之前清理所有东西,就像我可以使用CCleaner和Firefox一样。所以我写了一个删除defaultprofile文件夹(../ appdata/geckofx /)的批处理文件,然后启动我的.exe 一切工作正常,但我的问题是如果有另一个地方xulrunner或geckofx存储任何东西在另一个文件夹或我的解决方案已经“完全清洁”了? 增加了我的批处理代码,如果有人想使用它:VB - geckofx的完整重置

rmdir /s /q "C:\Users\Administrator\AppData\Local\Geckofx\" 
cd %~dp0 
start %1myprogram.exe 

回答

0

清洁的一切:

 Dim CookieMan As nsICookieManager 
     CookieMan = Xpcom.GetService(Of nsICookieManager)("@mozilla.org/cookiemanager;1") 
     CookieMan = Xpcom.QueryInterface(Of nsICookieManager)(CookieMan) 
     CookieMan.RemoveAll()