草庐IT

the_executable

全部标签

windows - 错误 1053 : The service did not respond to the start or control request in a timely fashion

我有一个可执行文件,我想将其设置为作为服务运行。使用windows提供的sc.exe工具(见知识库文章:http://support.microsoft.com/kb/251192),我成功“注册”了服务。但是,当我转到服务管理控制台(开始->运行->services.msc)并启动服务时,出现以下错误:错误1053:服务没有及时响应启动或控制请求。阅读之后,我的初步印象是服务可执行文件必须符合API,并且服务必须响应的必需功能/方法包括启动/停止/重新启动命令。然而,这似乎违背了sc.exe工具的全部意义,该工具被宣传能够将任何可执行文件转换为服务。任何人都可以为我阐明这一点吗?

c - SetupDiGetDeviceRegistryProperty : "The data area passed to a system call is too small" error

我有一个使用SetupAPI在WindowsXP上枚举USB设备的代码:HDEVINFOhDevInfo=SetupDiGetClassDevs(&_DEVINTERFACE_USB_DEVICE,0,0,DIGCF_DEVICEINTERFACE|DIGCF_PRESENT);for(DWORDi=0;;++i){SP_DEVINFO_DATAdevInfo;devInfo.cbSize=sizeof(SP_DEVINFO_DATA);BOOLsucc=SetupDiEnumDeviceInfo(hDevInfo,i,&devInfo);if(GetLastError()==ERRO

windows - Grunt/Batch : how to execute shell commands within the gruntfile. js目录?

我知道这是一个常见问题,但我尝试过的所有答案均无效。奇怪的是,一位friend在他的Windows上尝试了这个脚本,实际上得到了当前目录(包含gruntfile.js的目录)。我试图查看差异,但也没有发现任何差异。module.exports=function(grunt){grunt.initConfig({pkg:grunt.file.readJSON('package.json'),shell:{test:{command:'dir'}}});grunt.loadNpmTasks('grunt-shell');};这是我得到的:D:\Websites\AUB>gruntshell

windows - 导入模块 : The specified module 'msonline' was not loaded because no valid module file was found in any module directory

错误:Import-Module:Thespecifiedmodule'msonline'wasnotloadedbecausenovalidmodulefilewasfoundinanymoduledirectory当我尝试通过键入加载模块时弹出错误:Import-ModuleMSOnline尝试在我的计算机上安装AzureADpowershell模块,以便我能够使用MSONLINEcmdlet创建PSSession。在我安装了MicrosoftOnlineServices登录助手(版本7.250.4556.0),然后安装了适用于WindowsPowershell的最新Windows

windows - nvcc 致命 : Compiler 'cl.exe' in PATH different than the one specified with -ccbin

我已经在Windows7-SP1上安装了CUDA7.5,并且正在使用VisualStudio2013。不幸的是,我无法运行任何CUDA代码。我什至无法构建示例bandwidthTest。我收到以下错误:C:\ProgramData\NVIDIACorporation\CUDASamples\v7.5\1_Utilities\bandwidthTest>"C:\ProgramFiles\NVIDIAGPUComputingToolkit\CUDA\v7.5\bin\nvcc.exe"-gencode=arch=compute_20,code=\"sm_20,compute_20\"-ge

windows - Jenkins 没有完成 'execute windows command' 步骤

我正在使用“执行Windows批处理命令”选项在Jenkins中运行一堆Windows命令作为构建步骤。但是,构建在执行一些命令后停止,忽略其余命令,并显示“完成:成功”。这是我的“执行Windows批处理命令”的样子:xcopysource\dirdest\dir7zxfile_name.zipcdextracted_dir_namermdir/s/qstale_outputcommand_to_be_runanother_command_to_be_runpost_processing_copy_and_zip_commands_Jenkins一直执行到another_comman

windows - Sonar : The 'report' parameter is missing

我正在使用MSBuild。我安装了Java8。我正在运行以下命令:SonarQube.Scanner.MSBuild.exebegin/k:"ABC"/d:sonar.host.url="http://localhost:9000"/d:sonar.login="8b839xxxxxxxxxxxxxxxxxxxxxxx6b00125bf92"/d:sonar.verbose=true"C:\ProgramFiles(x86)\MicrosoftVisualStudio\2017\Professional\MSBuild\15.0\Bin\msbuild.exe"/t:rebuildSo

windows - Ubuntu wsl2 git 在大型 repos 上获取 "The remote end hung up unexpectedly"

在Windows上的wsl2中的Ubuntu19.04中执行此操作数天。$gitclonehttps://github.com/gohugoio/hugo.gitCloninginto'hugo'...error:RPCfailed;curl56GnuTLSrecverror(-12):ATLSfatalalerthasbeenreceived.fatal:Theremoteendhungupunexpectedly我尝试重新编译git以使用openssl,但没有做任何事情。我尝试了ssh和https。我尝试修改http的git设置。我修改了各种git内存设置。目前StackOverf

windows - VS2010 SP1 安装。 “The feature you are trying to use is on a network resource that is unavailable”

最后,我正在尝试安装WindowsPhone应用程序SDK,以便我可以将我制作的应用程序放到我的手机上。为此,我被告知需要安装SP1。当我尝试这样做时,我得到以下信息:"Thefeatureyouaretryingtouseisonanetworkresourcethatisunavailablevisualstudioriaservices.msi"我下载riaservices.msi并将对话框指向它,然后我收到消息:"ThefileisnotavalidinstallationpackagefortheproductWCFRIAServicesV1.0forVS2010."我已经下

windows - git bash (cache passphrase key) : Can't get the ssh-agent to run on windows, 修改了.bashrc 和.profile

谁能帮忙,我在Windows上,git正在将我的源设置为github。当然,每次我想pull/推或任何我需要为github提供key的密码时。根据我所阅读的内容,我需要编辑~/.profile或~/.bashrc并输入一些文本seehttps://help.github.com/articles/working-with-ssh-key-passphrases我已经这样做了很多次,实际上我在两个文件中都输入了它,但是当我打开一个新的GitBash窗口时,似乎没有任何东西运行(我假设某些东西应该运行并根据上面的链接询问我的密码).当然,每次Push或Pull都会再次要求我提供密码。我显然