草庐IT

runtime-permissions

全部标签

c# - 如何快速而可靠地确定是否安装了 Visual C++ 2013 Runtime

这个问题在这里已经有了答案:DetectifVisualC++RedistributableforVisualStudio2012isinstalled(21个答案)关闭6年前。我试图让我的应用程序确定用户系统上是否安装了MicrosoftVisualC++2013Redistributable。我查看了答案here,here,和here,但看起来所有答案都分为两大类:检查注册表:这不是一个选项,因为如果安装了VisualStudio或VisualC++已被删除,您会得到误报。HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal

windows - Windows : become/become_user permission/owner problems 上的 Ansible

我想执行一些不需要使用管理员帐户的操作。例如,克隆git存储库或创建文件夹。我试过这个:-name:Creategogo1directorywin_shell:mkdirc:\tmp\gogo1become:yesbecome_user:vagrantvars:ansible_become_pass:vagrant这会创建所需的目录,但是当我以用户vagrant身份登录并尝试删除它时,我得到:You'llneedtoprovideadministratorpermissiontodeletethisfolder.用户Vagrant没有被授予对文件夹gogo1的任何权限。我还需要这样做:

python - 我试图理解为什么在使用 paramiko 1.7.6 时出现 "Permission Denied"错误

谁能告诉我为什么会出现以下错误:Traceback(mostrecentcalllast):File"C:\Python27\connect.py",line22,insftp.get(filepath,localpath)File"C:\Python27\lib\site-packages\paramiko-1.7.6-py2.7.egg\paramiko\sftp_client.py",line603,ingetfl=file(localpath,'wb')IOError:[Errno13]Permissiondenied:'C:\\remote'我在Windows7(作为管理员)

c# - 为什么 C# 会将所有方法和类型标记为 System.Runtime.InteropServices.Charset.Ansi?

我今天在玩VisualStudio,用C#来PInvokeWin32API中的一些东西。那是我注意到这个标题的时候(请在新标签页中打开以查看完整尺寸)内容如下:AlthoughthecommonlanguageruntimedefaultisSystem.Runtime.InteropServices.CharSet.Auto,languagesmayoverridethisdefault.Forexample,bydefaultC#marksallmethodsandtypesasSystem.Runtime.InteropServices.CharSet.Ansi.为什么是ANSI

windows - 尝试运行 Matlab-Compiler-Runtime 应用程序时 Windows 7 中出现 SxS 错误

我正在尝试在Windows7机器上运行作为独立Matlab应用程序构建的数据分析工具。我已经安装了MatlabCompilerRuntime(MCR)库版本7.11,2009b。当我尝试启动应用程序ELISAgui.exe时,出现以下错误:C:\Users\amatteson\temp\ELISAgui>ELISAgui.exeMyOwnException:FatalerrorloadinglibraryC:\ProgramFiles(x86)\MATLAB\MATLABCompilerRuntime\v711\bin\win32\mclmcr.dllError:Theapplicat

python - pip 安装 - PermissionError : [Errno 13] Permission denied

环境Windows8.1python3.5python问题当我执行pipinstallsklearn--upgrade时,出现以下错误:Exception:Traceback(mostrecentcalllast):File"d:\anaconda3\lib\site-packages\pip\basecommand.py",line209,inmainstatus=self.run(options,args)File"d:\anaconda3\lib\site-packages\pip\commands\install.py",line317,inrunprefix=options.

Java Runtime.getRunTime().exec(CMD) 不支持管道

我正在尝试编写一个程序来显示并能够使用JFrame窗口更新您的IP地址设置。我正在考虑纯粹在Windows上运行它,所以我试图能够使用netshwindows命令来检索/设置详细信息。Windows命令:netshinterfaceipshowconfigname="本地连接"|查找“IP”完全返回我想要的,但是我编写的代码将无法通过管道工作,只有当我写到“本地连接”部分时它才会工作。有没有什么方法可以使用管道功能来专门返回IP地址?我读到您可以将该行作为字符串数组传递,即String[]cmd=netsh......packageipchanger;importjava.io.Buf

windows - 由于缺少api-ms-win-crt-runtime-l1-1-0.dll,WAMPServer无法启动

我尝试安装wampserver3.0.6_x64并收到以下消息theprogramcan'tstartbecauseapi-ms-win-crt-runtime-l1-1-0.dllismissingfromyourcomputer我已经安装了所有东西我在StackOverflow中读到我需要安装UniversalCRuntime,但无法安装它。我很想知道如何解决它。 最佳答案 更新:最简单的解决方案从WAMPServer备用存储库whichcanbefoundhere下载全套MSVC运行时。在页面底部,有一个名为AllVisual

java - Runtime.getRuntime().exec -> Cannot run program CreateProcess error=2, 系统找不到指定的文件

我正在开发一个命令行java应用程序,它必须在此目录中运行名为gradlew.batassembleRelease的程序:this.workDir+"/Project/CapAndroid"所以我这样做了:Processp=Runtime.getRuntime().exec("gradlew.batassembleRelease",null,newFile(this.workDir+"/Project/CapAndroid"));该文件100%确定位于该目录中,它在Linux中运行完美,但在Windows上无法运行!我收到此错误:java.io.IOException:Cannotru

python paramiko 在使用 sftp 的 Windows 服务器上给出错误 "Permission denied [Errno 13]"

尝试在paramiko中使用sftp从Windows服务器下载一些文件。获取方法是:defget(self,remotepath,localpath=None):"""Copiesafilebetweentheremotehostandthelocalhost."""ifnotlocalpath:localpath=os.path.split(remotepath)[1]self._sftp_connect()self._sftp.get(remotepath,localpath)运行脚本时sshObj.get('C:\\my_file.txt','D:\\python\\'),它抛出