gpt4 book ai didi

javascript - 写入 ProgramData 文件夹中的数据库

转载 作者:行者123 更新时间:2023-11-28 00:09:28 25 4
gpt4 key购买 nike

我正在制作一个 Firefox 扩展,它允许我写入数据库,然后由 C# 程序访问该数据库。我发现这是两人沟通最简单的方式。现在,我需要将数据库驻留在 programdata 文件夹中,以便安装在客户端 PC 上时一切正常。我不知道该怎么做。我知道 C# 很简单,但我不知道 javascript 如何。

最佳答案

您需要 Firefox 插件的此路径:

var path_progData = Services.dirsvc.get('CmPrgs', Ci.nsIFile).path;

这会给你:

  • C:\ProgramData\Microsoft\Windows\Start Menu\Programs - 在 8.1 上测试(我猜 Win7 和 8 也是如此,但不确定 Win7)
  • C:\Documents and Settings\All Users\Start Menu\Programs - 适用于 WinXP
  • ? - 对于 WinVista(我有一台 vista 机器,但现在无法访问,稍后会更新)

您可能更喜欢 CmAppData,它在 Win8.1 上只提供 C:\ProgramData

收集所有平台上的 Firefox 特殊路径的项目

所以几个月前,我浏览了 Firefox 源代码中的所有特殊路径关键字,我试图捕获它们,我可能错过了一些,如果我错过了,请提及,以便我们改进这一点。我的目标是写一些东西,这样我就可以在所有平台上运行并查看特殊路径是什么。

这是我想出的代码,可以复制粘贴并在浏览器环境中从暂存器运行:(顺便说一句,路径根据您的配置文件是相对于配置文件目录还是绝对路径配置文件而有所不同)(也如果您使用可移植版本的 Firefox,路径有所不同)(并非所有路径,只是一些路径,但在可移植版本中,它们有点疯狂)(可移植 Firefox 仅适用于 Windows)

var DSP = Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties);
var keywords = [];
var str = [];


function doit() {
for (var i=0; i<keywords.length; i++) {
str.push('Keyword: "' + keywords[i] + '"');
try {
var methodFU = FileUtils.getFile(keywords[i], ['']);
str[str.length-1] += '|FU = "' + methodFU.path + '"';
} catch(ex) {
str[str.length-1] += '|FU = "' + ex.message + '"';
}
try {
var methodDS = DSP.get(keywords[i], Ci.nsIFile);
str[str.length-1] += '|DS = "' + methodDS.path + '"';
} catch(ex) {
str[str.length-1] += '|DS = "' + ex.message + '"';
}
}
var gClipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);
gClipboardHelper.copyString(str.join('\n'))
console.log(str.join('\n'));
}

var keywords = [
//http://mxr.mozilla.org/mozilla-central/source/xpcom/io/nsAppDirectoryServiceDefs.h
'AppRegF',
'AppRegD',
'DefRt',
'PrfDef',
'current',
'default',
'DefProfRt',
'DefProfLRt',
'ARes',
'AChrom',
'APlugns',
'SrchPlugns',
'AChromDL',
'APluginsDL',
'SrchPluginsDL',
'SHARED',
'PrefD',
'PrefF',
'MetroPrefF',
'PrefDL',
'ExtPrefDL',
'PrefDOverride',
'ProfD',
'ProfLD',
'UChrm',
'UsrSrchPlugns',
'LclSt',
'UPnls',
'UMimTyp',
'cachePDir',
'BMarks',
'DLoads',
'SrchF',
'XPIClnupD',
'indexedDBPDir',
'permissionDBPDir',
//http://mxr.mozilla.org/mozilla-central/source/xpcom/io/nsDirectoryServiceDefs.h
'Home',
'TmpD',
'CurWorkD',
'Home',
'Desk',
'CurProcD',
'XCurProcD',
'XpcomLib',
'GreD',
'SysD',
'Trsh',
'Strt',
'Shdwn',
'ApplMenu',
'CntlPnl',
'Exts',
'Fnts',
'Prfs',
'Docs',
'ISrch',
'DfltDwnld',
'ULibDir',
'UsrDsk',
'LocDsk',
'UsrApp',
'LocApp',
'UsrDocs',
'LocDocs',
'UsrIntrntPlgn',
'LoclIntrntPlgn',
'UsrFrmwrks',
'LocFrmwrks',
'UsrPrfs',
'LocPrfs',
'Pct',
'Mov',
'Music',
'IntrntSts',
'WinD',
'ProgF',
'DeskV',
'Progs',
'Cntls',
'Prnts',
'Pers',
'Favs',
'Strt',
'Rcnt',
'SndTo',
'Buckt',
'Strt',
'DeskP',
'Drivs',
'NetW',
'netH',
'Fnts',
'Tmpls',
'CmStrt',
'CmPrgs',
'CmDeskP',
'CmAppData',
'AppData',
'LocalAppData',
'PrntHd',
'CookD',
'DfltDwnld',
'Docs',
'Pict',
'Music',
'Vids',
'Locl',
'LibD',
'XDGDesk',
'XDGDocs',
'XDGDwnld',
'XDGMusic',
'XDGPict',
'XDGPubSh',
'XDGTempl',
'XDGVids',
'DfltDwnld',
'DrvD',
//http://mxr.mozilla.org/mozilla-release/source/toolkit/mozapps/update/nsUpdateService.js#76
'GreD',
'UpdRootD',
'XREExeF',
//http://mxr.mozilla.org/mozilla-release/source/toolkit/mozapps/update/tests/shared.js#55
'ProfDS',
'ProfD',
'GreD',
'XCurProcD',
'XREExeF',
'UpdRootD',
//http://mxr.mozilla.org/mozilla-release/source/xpcom/build/nsXULAppAPI.h
'UAppData',
'XREExtDL',
'XREExeF',
'started',
'ProfDS',
'started',
'ProfLDS',
'XRESysLExtPD',
'XRESysSExtPD',
'XREUSysExt',
'XREAppDist',
'UpdRootD',
'UpdArchD',
'OSUpdApplyToD'
];

doit();

因此特殊路径词位于数组keywords中。如果知道所有平台的所有路径那就太棒了。

上面的代码在 Win8.1 上生成此代码,它复制到剪贴板,因此可以在此处运行并粘贴。

相对概况(常规方法)
  • Win 8.1

    Keyword: "AppRegF"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\registry.dat"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\registry.dat"
    Keyword: "AppRegD"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox"
    Keyword: "DefRt"|FU = "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser\defaults"
    Keyword: "PrfDef"|FU = "C:\Program Files (x86)\Mozilla Firefox\defaults\pref"|DS = "C:\Program Files (x86)\Mozilla Firefox\defaults\pref"
    Keyword: "current"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "default"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "DefProfRt"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles"
    Keyword: "DefProfLRt"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles"
    Keyword: "ARes"|FU = "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser\res"
    Keyword: "AChrom"|FU = "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser\chrome"
    Keyword: "APlugns"|FU = "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser\plugins"
    Keyword: "SrchPlugns"|FU = "C:\Program Files (x86)\Mozilla Firefox\browser\searchplugins"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser\searchplugins"
    Keyword: "AChromDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "APluginsDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "SrchPluginsDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "SHARED"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "PrefD"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "PrefF"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\prefs.js"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\prefs.js"
    Keyword: "MetroPrefF"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\metro-prefs.js"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\metro-prefs.js"
    Keyword: "PrefDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "ExtPrefDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "PrefDOverride"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\preferences"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\preferences"
    Keyword: "ProfD"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "ProfLD"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "UChrm"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\chrome"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\chrome"
    Keyword: "UsrSrchPlugns"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\searchplugins"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\searchplugins"
    Keyword: "LclSt"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\localstore.rdf"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\localstore.rdf"
    Keyword: "UPnls"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UMimTyp"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\mimeTypes.rdf"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\mimeTypes.rdf"
    Keyword: "cachePDir"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "BMarks"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\bookmarks.html"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\bookmarks.html"
    Keyword: "DLoads"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\downloads.rdf"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\downloads.rdf"
    Keyword: "SrchF"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XPIClnupD"|FU = "C:\Program Files (x86)\Mozilla Firefox\browser"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser"
    Keyword: "indexedDBPDir"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "permissionDBPDir"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Home"|FU = "C:\Users\Vayeate"|DS = "C:\Users\Vayeate"
    Keyword: "TmpD"|FU = "C:\Users\Vayeate\AppData\Local\Temp"|DS = "C:\Users\Vayeate\AppData\Local\Temp"
    Keyword: "CurWorkD"|FU = "C:\Program Files (x86)\Mozilla Firefox"|DS = "C:\Program Files (x86)\Mozilla Firefox"
    Keyword: "Home"|FU = "C:\Users\Vayeate"|DS = "C:\Users\Vayeate"
    Keyword: "Desk"|FU = "C:\Users\Vayeate\Desktop"|DS = "C:\Users\Vayeate\Desktop"
    Keyword: "CurProcD"|FU = "C:\Program Files (x86)\Mozilla Firefox\browser"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser"
    Keyword: "XCurProcD"|FU = "C:\Program Files (x86)\Mozilla Firefox\browser"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser"
    Keyword: "XpcomLib"|FU = "C:\Program Files (x86)\Mozilla Firefox\xul.dll"|DS = "C:\Program Files (x86)\Mozilla Firefox\xul.dll"
    Keyword: "GreD"|FU = "C:\Program Files (x86)\Mozilla Firefox"|DS = "C:\Program Files (x86)\Mozilla Firefox"
    Keyword: "SysD"|FU = "C:\Windows\system32"|DS = "C:\Windows\system32"
    Keyword: "Trsh"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Strt"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    Keyword: "Shdwn"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "ApplMenu"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "CntlPnl"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Exts"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Fnts"|FU = "C:\Windows\Fonts"|DS = "C:\Windows\Fonts"
    Keyword: "Prfs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Docs"|FU = "C:\Users\Vayeate\Documents"|DS = "C:\Users\Vayeate\Documents"
    Keyword: "ISrch"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "DfltDwnld"|FU = "C:\Users\Vayeate\Downloads"|DS = "C:\Users\Vayeate\Downloads"
    Keyword: "ULibDir"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrDsk"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LocDsk"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrApp"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LocApp"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrDocs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LocDocs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrIntrntPlgn"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LoclIntrntPlgn"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrFrmwrks"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LocFrmwrks"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrPrfs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LocPrfs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Pct"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Mov"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Music"|FU = "C:\Users\Vayeate\Music"|DS = "C:\Users\Vayeate\Music"
    Keyword: "IntrntSts"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "WinD"|FU = "C:\Windows"|DS = "C:\Windows"
    Keyword: "ProgF"|FU = "C:\Program Files (x86)"|DS = "C:\Program Files (x86)"
    Keyword: "DeskV"|FU = "C:\Users\Vayeate\Desktop"|DS = "C:\Users\Vayeate\Desktop"
    Keyword: "Progs"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs"
    Keyword: "Cntls"|FU = "Component returned failure code: 0x80520009 (NS_ERROR_FILE_INVALID_PATH) [nsIFile.create]"|DS = ""
    Keyword: "Prnts"|FU = "Component returned failure code: 0x80520009 (NS_ERROR_FILE_INVALID_PATH) [nsIFile.create]"|DS = ""
    Keyword: "Pers"|FU = "C:\Users\Vayeate\Documents"|DS = "C:\Users\Vayeate\Documents"
    Keyword: "Favs"|FU = "C:\Users\Vayeate\Favorites"|DS = "C:\Users\Vayeate\Favorites"
    Keyword: "Strt"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    Keyword: "Rcnt"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Recent"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Recent"
    Keyword: "SndTo"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\SendTo"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\SendTo"
    Keyword: "Buckt"|FU = "Component returned failure code: 0x80520009 (NS_ERROR_FILE_INVALID_PATH) [nsIFile.create]"|DS = ""
    Keyword: "Strt"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    Keyword: "DeskP"|FU = "C:\Users\Vayeate\Desktop"|DS = "C:\Users\Vayeate\Desktop"
    Keyword: "Drivs"|FU = "Component returned failure code: 0x80520009 (NS_ERROR_FILE_INVALID_PATH) [nsIFile.create]"|DS = ""
    Keyword: "NetW"|FU = "Component returned failure code: 0x80520009 (NS_ERROR_FILE_INVALID_PATH) [nsIFile.create]"|DS = ""
    Keyword: "netH"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Network Shortcuts"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Network Shortcuts"
    Keyword: "Fnts"|FU = "C:\Windows\Fonts"|DS = "C:\Windows\Fonts"
    Keyword: "Tmpls"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Templates"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Templates"
    Keyword: "CmStrt"|FU = "C:\ProgramData\Microsoft\Windows\Start Menu"|DS = "C:\ProgramData\Microsoft\Windows\Start Menu"
    Keyword: "CmPrgs"|FU = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"|DS = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"
    Keyword: "CmDeskP"|FU = "C:\Users\Public\Desktop"|DS = "C:\Users\Public\Desktop"
    Keyword: "CmAppData"|FU = "C:\ProgramData"|DS = "C:\ProgramData"
    Keyword: "AppData"|FU = "C:\Users\Vayeate\AppData\Roaming"|DS = "C:\Users\Vayeate\AppData\Roaming"
    Keyword: "LocalAppData"|FU = "C:\Users\Vayeate\AppData\Local"|DS = "C:\Users\Vayeate\AppData\Local"
    Keyword: "PrntHd"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Printer Shortcuts"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Printer Shortcuts"
    Keyword: "CookD"|FU = "C:\Users\Vayeate\AppData\Local\Microsoft\Windows\INetCookies"|DS = "C:\Users\Vayeate\AppData\Local\Microsoft\Windows\INetCookies"
    Keyword: "DfltDwnld"|FU = "C:\Users\Vayeate\Downloads"|DS = "C:\Users\Vayeate\Downloads"
    Keyword: "Docs"|FU = "C:\Users\Vayeate\Documents"|DS = "C:\Users\Vayeate\Documents"
    Keyword: "Pict"|FU = "C:\Users\Vayeate\Pictures"|DS = "C:\Users\Vayeate\Pictures"
    Keyword: "Music"|FU = "C:\Users\Vayeate\Music"|DS = "C:\Users\Vayeate\Music"
    Keyword: "Vids"|FU = "C:\Users\Vayeate\Videos"|DS = "C:\Users\Vayeate\Videos"
    Keyword: "Locl"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LibD"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGDesk"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGDocs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGDwnld"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGMusic"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGPict"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGPubSh"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGTempl"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGVids"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "DfltDwnld"|FU = "C:\Users\Vayeate\Downloads"|DS = "C:\Users\Vayeate\Downloads"
    Keyword: "DrvD"|FU = "C:"|DS = "C:"
    Keyword: "GreD"|FU = "C:\Program Files (x86)\Mozilla Firefox"|DS = "C:\Program Files (x86)\Mozilla Firefox"
    Keyword: "UpdRootD"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"
    Keyword: "XREExeF"|FU = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"|DS = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    Keyword: "ProfDS"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "ProfD"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "GreD"|FU = "C:\Program Files (x86)\Mozilla Firefox"|DS = "C:\Program Files (x86)\Mozilla Firefox"
    Keyword: "XCurProcD"|FU = "C:\Program Files (x86)\Mozilla Firefox\browser"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser"
    Keyword: "XREExeF"|FU = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"|DS = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    Keyword: "UpdRootD"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"
    Keyword: "UAppData"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox"
    Keyword: "XREExtDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XREExeF"|FU = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"|DS = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    Keyword: "started"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "ProfDS"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "started"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "ProfLDS"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "XRESysLExtPD"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XRESysSExtPD"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XREUSysExt"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Extensions"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Extensions"
    Keyword: "XREAppDist"|FU = "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"|DS = "C:\Program Files (x86)\Mozilla Firefox\distribution"
    Keyword: "UpdRootD"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"

上面我只粘贴了Win8.1的相对路径配置文件,其余的我在评论中收集它们:https://gist.github.com/Noitidart/715840fa5008ee032017因为堆栈溢出不允许这么多文本。

关于javascript - 写入 ProgramData 文件夹中的数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31034596/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com