草庐IT

get_stored_fields

全部标签

windows - 在 Windows Server 2003 LocalMachine/My store 中查找公共(public)证书的物理路径

我正在尝试找到导入到LocalMachine/My(个人)证书存储区的公钥的文件系统路径,以便我可以向自定义App_pool帐户授予读取和执行权限。我尝试使用findprivatekey.exe和winhttpcertcfg.exe但没有成功。这是我目前的路径,只是不知道将权限应用到哪一个。C:\DocumentsandSettings\AllUsers\ApplicationData\Microsoft\Crypto\RSA\MachineKeysfindprivatekey.exe总是找不到证书。winhttpcertcfg-l-cLOCAL_MACHINE\My-sMyCerti

Windows shell : How can I get the audio device(s) name(s)?

Iamnotsureifthisisstrictlyaprogrammingquestion,aslongasIdon'tmindtouseadditionalsoftwareinordertosolvetheproblem,aslongasitkeepsbeingscriptableorcommand-line(thisis:anotGUIsolution).Anyway,Ihavepostedanother(abitdifferent)questionatSuperUser.Bytheway,IwillupdatehereifIgettheanswerthere.我的Windows

windows - 导航到分组 GridView 中的特定组标题(win store app)

我想做一些事情,比如当我从ComboBox中选择一些项目时,这样我位于ScrollViewer中的分组GridView将导航/聚焦到具有group-header和字符串的组(或其标题)ComboBox中所选项目的值。有什么想法吗?可能有些游戏带有TabIndex属性或类似的东西? 最佳答案 为什么在ScrollViewer中托管GridView?GridView有它自己的ScrollViewer。当您开始在GridView中使用ScrollViewer时(只需将GridView移出ScrollViewer)-您只需要使用Scroll

c++ - windows C++ opening printer with documentproperties get C6836 "Write Overrun"代码分析警告

在下面的代码中://IfGetPrinterdidn'tfillintheDEVMODE,trytogetitbycalling//DocumentProperties...if(pi2->pDevMode==NULL){dwNeeded=DocumentProperties(NULL,hPrinter,printerName,NULL,NULL,0);if(dwNeededpDevMode=pDevMode;}在线lFlag=DocumentProperties(NULL,hPrinter,printerName,pDevMode,NULL,DM_OUT_BUFFER);当我运行Vi

ruby - Ruby gets 方法将我的输入截断为 256 个字符

我试图在Ruby中输入一个长字符串(>256个字符,但通常puts"Enterlongstring"ilogo=gets.chompputs"#{ilogo}"出于某些愚蠢的原因,它总是截断输入以仅保留256个字符(在chomp之前)。我验证了Ruby接受更长的字符串,并且Windows7命令行控制台也接受大于256个字符的字符串。我找不到任何关于具有这种限制的gets方法的提及,但我肯定遗漏了一些东西。我一无所知。这可能只是一个获取限制吗?编辑:更具体地说:我正在使用的测试字符串之一是:1111111111111111111111111111111111111111111111111

windows - Node : Getting MyDocuments Path on Windows

如何使用NodeJS检索MyDocuments路径。所以我想用下面的C#代码在NodeJs中得到一些东西:Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)谢谢和问候斯特凡 最佳答案 找到答案:varQ=require('Q');vargetUserDoc=function(callback){varWinreg=require('winreg');vardeferred=Q.defer();varregKey=newWinreg({hive:Winreg

windows - 通过 Get-WmiObject : Exception calling SetDefaultPrinter : Not Supported 设置默认打印机时出错

概览我正在尝试使用PowerShell在Windows2012R2中设置默认打印机。每当我在本地执行此操作时,它都可以正常工作,但是无论我如何尝试远程运行它(我需要这样做),它总是会失败并出现以下错误。我已经尝试使用域管理员帐户以及我需要为其更改默认打印机的用户凭据,但它仍然失败。错误Exceptioncalling"SetDefaultPrinter":"Notsupported"Atline:1char:1+(Get-WmiObject-ClassWin32_Printer-Filter"(Name='MicrosoftXPSDocumentWrite...+~~~~~~~~~~~

python 3.7 : How to get the Windows user Login Time?

我正在尝试使用Python3.7获取系统用户的登录时间。我已经尝试过win32net和Python的平台模块,但是平台模块中没有定义函数,Win32net与Python3等不兼容。我尝试了以下代码:importplatformplatform.uname()importplatformos_name=platform.uname()[0].lower()ifos_name=="windows":get_win_login_time()elifos_name.endswith("nix"):get_nix_login_time() 最佳答案

windows-store-apps - "ProtectedData.Unprotect(password, entropy)"在 UWP 中总是返回 null

我有windowsphone8.0(silverlight)应用程序,我想升级到UWP。在WindowsPhone8.0应用程序中,我使用“ProtectedData.Protect(passwordData,entropy)”(mscorlib.extensions.dll,v2.0.5.0)来保护一些特定的字符串。但是当我尝试在UWP应用程序中使用“ProtectedData.UnProtect(passwordData,entropy)”或“ProtectedData.Unprotect(passwordData,entropy)”时。在执行ProtectedData.UnPro

node.js - Windows Node : always get either "Error: ENOENT: no such file or directory, open" or "Error: EACCES: permission denied, open"

这是我的代码:varfs=require('fs');varutil=require('util');varlogFile=fs.createWriteStream('C:/text.txt',{flags:'a'});//Or'w'totruncatethefileeverytimetheprocessstarts.varlogStdout=process.stdout;console.log=function(){logFile.write(util.format.apply(null,arguments)+'\n');logStdout.write(util.format.app