- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在制作一个 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 仅适用于 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/
我需要读取和写入包含应用程序特定数据并在所有用户之间共享的文件。 我尝试使用 Environment.GetFolderPath(Environment.SpecialFolder.CommonApp
我有一个用 C# 编写的应用程序,我正在寻求将一些信息写入隐藏的 ProgramData,以便从应用程序的前端和后端访问相同的连接字符串。 我使用路径变量访问目录,如下所示: private bool
我输入: 回显 $USERPROFILE 并获取 C:\Users\rob 回显 $PROGRAMFILES 并获取 C:\Program Files (x86) echo $PROGRAMDATA
我正在制作一个 Firefox 扩展,它允许我写入数据库,然后由 C# 程序访问该数据库。我发现这是两人沟通最简单的方式。现在,我需要将数据库驻留在 programdata 文件夹中,以便安装在客户端
我正在尝试创建一个目录,然后将其删除(出于测试目的,我将省略,但如果需要可以提供详细信息)。 像这样: >>> import os >>> os.makedirs('C:\\ProgramData\\
存储对每个用户都相同但必须对程序可写的程序数据文件的正确位置是什么? MS Windows XP 上的等效位置是什么?我已经读到 C:\ProgramData 在普通用户安装后不可写。真的吗?如何使用
我似乎无法更新 c:\ProgramData\appname\config.ini 中的配置文件。我不断收到拒绝访问错误。似乎 ini 代码在尝试用新文件更新时无法删除现有的 .ini 文件。有趣的是
我正在编写一个桌面应用程序,需要一个文件夹...... 存在于 Windows 7 和 Vista 中 对所有用户通用(用于存储配置数据)。 应用程序可以在其上保存数据,无需管理员权限(不像“Prog
Windows 中 ProgramData 文件夹的重要性是什么? 我注意到许多已安装的程序将文件存储在 ProgramData 文件夹的子目录中。这有什么具体原因吗? 我必须为我的应用程序创建一个安
所以我正在编写一个遍历指定目录树的应用程序,我正在试验处理文件夹访问权限的异常,我遇到了一个文件夹,编译器返回该文件夹的目录为 C:\ProgramData\应用数据 有谁知道这个文件夹是什么?它似乎
我想在用户独立的哺乳期为我的应用程序创建日志文件。据我所知C:\ProgramData是个好地方。 我试过这种方法: if not DirectoryExists('C:\ProgramData\My
还有一个新手 NSIS 问题。这是脚本: ; -*-nsis-*- Name "ndhtest" OutFile "FooStartMenuTest.exe" XPStyle on !de
我希望我的安装程序将一些文件复制到 Windows ProgramData目录,我看到大多数 Windows 目录已经在 Inno Setup 文档中定义了预定义的常量,但是我看不到 ProgramD
我的应用程序需要安装一些可以在运行时由应用程序编辑的文件。 Install shield 提供了一个别名 [CommonAppDataFolder],它将在 Vista 和 Windows 7 上解析
我需要为我的程序存储一些特定于用户的配置数据。 Application Data/AppData(在用户目录中)和 ProgramData(在系统驱动器的根目录中)似乎都是放置它的合理位置。 程序数据
我在AWS(免费套餐)上创建了Windows 2016实例类型。我创建了一个“冷硬盘”卷,并通过管理控制台将其附加到Windows 2016实例。到现在为止还挺好。 获得管理员密码后,我可以将RDP导
首先,我只想说我是 SQL 新手,所以如果我无知什么的,请原谅我。 我正在开发这个项目,我需要从文本文件导入数据。我的第一个想法是使用这个命令: LOAD DATA LOCAL INFILE '/tm
我们开发C#应用程序并通过Wix将其打包成可以安装的MSI文件。应用程序可执行文件和 .dll 文件安装到 ProgramFilesFolder 中的标准位置。 启动应用程序时创建本地 .sdf 文件
正如 Writing config file in C:\Program Files (x86)\MyApp\myapp.cfg, vs. Administrator privilege 中指出的那样
我有一个用 Java 编写的程序,它最初使用它在 Program Files 中的目录来编写该程序的所有用户都可以访问的文件。这要求我们的用户始终以管理员身份运行。为了缓解这种情况,我们决定使用 %A
我是一名优秀的程序员,十分优秀!