草庐IT

get-application-directory

全部标签

windows-applications - Web 身份验证代理总是失败?

我刚刚试用了新的Office365Api工具预览版,当Web身份验证代理在Windows8应用程序中打开时,我总是收到错误消息。我第一次使用该应用程序时能够登录,但从那时起,我什至没有机会登录就收到此错误。请参阅下面的错误屏幕截图(它们具有白色背景):Web身份验证代理屏幕上的消息:在我点击代理上的后退按钮后,我收到第二条错误消息:如果我点击“退出”按钮,什么也不会发生。我还尝试清除所有缓存,并关闭所有其他浏览器session。由于第一次登录成功,我知道应用程序配置正确。就好像它不知何故进入了一个糟糕的状态,然后缓存了一些无效的东西,阻止它正确导航到登录页面。最后要注意的是,除了创建一

c# - 如何使用 Application_UnhandledException 捕获一般异常?

我问的问题可能很简单,但我确定我在这里遗漏了一些东西:D我的App.xaml.cs文件中有以下方法:privatevoidApplication_UnhandledException(objectsender,ApplicationUnhandledExceptionEventArgse){MessageBox.Show("Anerroroccurred!",":(",MessageBoxButton.OK);e.Handled=true;App.Current.Terminate;}并且在App()方法中添加了eventHandler:publicApp(){UnhandledExc

c++ - Qt5 : Preventing another instance of the application doesn't work anymore. ..!

我在Windows7平台上使用Qt5。我的应用程序是某种监听端口8002的TCP服务器,所以我只需要它的一个实例。为了防止我的应用程序出现多个实例,我使用(d)下面的代码(在StackOverflow上找到):intmain(intargc,char*argv[]){QApplicationa(argc,argv);QSharedMemorysharedMemory;sharedMemory.setKey("TcpServer-Key");if(sharedMemory.create(1)==false){QMessageBox::warning(NULL,"Warning!","An

windows - python : bad handshake error on get request when executed on windows but not linux

我写了一个python脚本来下载网站的内容,当我在linux机器上执行它时它工作得很好,但在windows上却不行(它需要在windows上执行)。这是生成错误的代码:importrequestsc=requests.Session()url='https://ted.jeancoutu.com/action/login'c.get(url)这是我在Windows机器上执行代码时收到的错误消息:Traceback(mostrecentcalllast):File"C:\Python34\lib\site-packages\requests\packages\urllib3\contri

windows - 在资源 `create` 上执行操作 'directory[C:/topdir/subdir]' 时出错

我在Windows服务器上的创建操作中遇到权限错误。最初我在一个Recipe中这样做:directory"C:/topdir"dorights:full_control,'Users'action:createenddirectory"C:/topdir/subdir"doaction:createrecursivetrueend如果我在测试厨房中运行它,或者甚至登录到引导服务器并运行chef-client,它会完成且没有错误。但是我在Chef服务器自动运行时看到这些错误:Description:Errorexecutingaction`create`onresource'direct

windows - 如何合并 Get-CimInstance 和 Get-WMIObject 函数的输出

我有2个powershell脚本,我在下面提到过。我正在寻找一种结合这两个脚本的方法。但是我无法这样做,因为其中一个脚本使用的是CIM方法,而另一个脚本使用的是WMI方法。我想要完成的是提供同一台服务器的上次重启时间和可用空间(用户必须输入服务器名称,然后按Enter它会显示上次重启时间和可用空间)。脚本1(CIM方法):$Server=Read-Host-Prompt'Inputyourservername'Get-CimInstance-ClassNamewin32_operatingsystem-ComputerName$Server|selectcsname,lastbootu

python - PyThreadState_GET() 从 PyImport_GetModuleDict() 中返回 NULL

我正在使用Python3.6在Windows上工作。我有以下用于测试python解释器的简单嵌入代码:Py_SetProgramName(L"MyApp");Py_SetPath(L"C:\\Users\\rutski\\Documents\\python\\PCBuild\\amd64\\python36.zip;"L"C:\\Users\\rutski\\Documents\\python\\DLLs;"L"C:\\Users\\rutski\\Documents\\python\\lib;"L"C:\\Users\\rutski\\Documents\\python\\PCBui

arrays - PowerShell,Get-WinEvent -FilterHashTable ID 和数组的奇怪行为

我想做什么?我使用-FilterHashTable运行Get-WinEvent函数,为ID参数提供一组有趣的事件ID。$IDS=4720,4722,4723,4724,4725,4726,4727,4728,4729,4730,4731,4732,4733,4734,4735,4737,4738,4740,4741,4742,4743,4744,4745,4746,4747,4748,4749,4750,4751,4752,4753,4754,4755,4756,4757,4758,4759,4760,4761,4762,4763,4764,4767,4781Get-WinEvent-

php - 如何修复 PHP 警告 : file_get_contents?

我收到以下警告:Warning:file_get_contents(C:\xampp\htdocs\test/wp-content/themes/test\images)[function.file-get-contents]:failedtoopenstream:Permissiondeniedin..\plugins\theme-check\main.phponline29main.php的第29行是这样写的:$other[$filename]=file_get_contents($filename);这是与$files相关的代码:$files=listdir($theme);$f

windows - 为什么 boost::filesystem is_directory 在作为 Windows 服务运行时返回不同的结果?

我有一些代码可以遍历目录中的文件并对非目录文件执行有用的操作,如下所示:namespacebfs=boost::filesystem;for(bfs::directory_iteratoriterDir(m_inPath);bContinue&&iterDir!=bfs::directory_iterator();iterDir++){std::stringfilename=iterDir->path().filename().string();boost::to_lower(filename);if(!bfs::is_directory(*iterDir)&&Condition2(f