草庐IT

NAME_OF_FILE

全部标签

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 中的 java.io.IOException : The process cannot access the file because another process has locked a portion - when using IOUtils. copyLarge()

问题源于此tryblock中的特定代码行:try{fInputStream=newFileInputStream(path);#thisLinebyteCount+=IOUtils.copyLarge(fInputStream,fOutputStream);fileCount++;}堆栈跟踪看起来像这样:java.io.IOException:Theprocesscannotaccessthefilebecauseanotherprocesshaslockedaportionofthefileatjava.io.FileInputStream.readBytes(NativeMetho

python - 让 Scapy 在 Windows 上工作时出错 : "' module' object has no attribute 'ex_name' "

我正在尝试运行一个涉及ARP嗅探的Python脚本,并且显然依赖于存在的Scapy库。我完全不知道自己在做什么,但我相当擅长谷歌搜索、遵循指示和复制/粘贴。我已经在我的Mac上启动并运行了它,但我仍然坚持我希望这是让Scapy在我的Windows计算机上工作的最后一个障碍(这最终是需要运行此脚本的计算机)。我遵循了http://www.secdev.org/projects/scapy/doc/installation.html#windows中的所有说明。,除了我选择了Python2.7并使用了那里列出的所有内容的更新的2.7兼容版本。我在除Pypcap和Libdnet之外的所有安装

Windows 命令行 : open file with active process?

我希望能够理想地告诉事件进程使用Windows命令行打开文件——但任何使用内置Windows(7+)功能(例如powershell或vbscript)的解决方案也可以。例如,如果我打开了一个记事本实例并且知道它的processid是1234,那么能够执行如下操作会很棒:notepad.exe"myfile.txt"/pid=1234并让记事本尝试在现有进程的窗口中打开文件。这可能吗? 最佳答案 你应该为此使用Autohotkey。虽然这也可以在powershell中完成,但它比在专用工具中复杂得多。在AHK中,您将模拟打开文件(通常

Windows 中的 Python h2o : cannot initialize (TypeError: argument of type 'NoneType' is not iterable)

我正在尝试在我的公司使用pythonh2o。使用命令后:>importh2o>h2o.init()我得到了h2o\connection.py:110:UserWarning:Proxyenvironmentvariable`HTTP_PROXY`withvalue`http://username:password@proxy.**.com:8080`found.ThismayinterferewithyourH2OConnection.warnings.warn("Proxyenvironmentvariable`"+name+"`withvalue`"+value+"`found.T

linux - 点网核心 : cross platform version of GetInvalidFileNameChars?

我正在构建一个将在Windows和Ubuntu系统上运行的.NetCore2.0控制台应用程序。我有一个字符串需要转换成一个安全的文件名。目前我正在使用以下代码来实现这一点:varsafeName=string.Join("-",name.Split(Path.GetInvalidFileNameChars()));它可以工作,但它会在不同的操作系统上产生不同的结果,因为Linux允许使用Windows不允许的字符。我喜欢在所有系统上产生相同结果的解决方案。是否有GetInvalidFileNameChars的跨平台版本可以为所有平台返回字符? 最佳答案

windows - Oracle安装中出现 'INS 30131 Initial setup required for the execution of installer validation failed'如何解决?

在WindowsServer2008上安装Oracle时发生此错误。详情:Cause - Failedtoaccessthetemporarylocation.Action - Ensurethatthecurrentuserhasrequiredpermissionstoaccessthetemporarylocation.AdditionalInformation: - PRVG-1901:failedtosetupCVUremoteexecutionframeworkdirectoryC:\Users\ADMINI~1\AppData\Local\Temp\2\CVU_12.2.

java - 在 java 中移动目录会抛出 java.nio.file.FileAlreadyExistsException

我正在创建一个回滚功能,这是我想要实现的:在与data文件夹相同的位置创建一个tmp文件夹;在执行任何操作之前,我将所有内容从data文件夹复制到tmp文件夹(少量数据)。回滚时我想删除数据文件夹并将重命名tmp文件夹到数据文件夹.这是我试过的StringcontentPath="c:\\temp\\data";StringtmpContentPath="c:\\temp\\data.TMP";if(Files.exists(Paths.get(tmpContentPath))&&Files.list(Paths.get(tmpContentPath)).count()>0){File

python - IDLE 无法打开 .py 文件,它提示 "The file' 的编码对于 Python 3.x 无效。”

我在cmd中使用命令scrapystartprojecttutorial,它创建了一些文件,但是这些文件不能被IDLE打开。它暗示:Thefile'sencodingisinvalidforPython3.x.IDLEwillconvertittoUTF-8.What'sthecurrentencodingofthefile?截图如下:是什么原因,如何解决? 最佳答案 如果您确定在使用IDLE打开这些文件之前没有手动编辑它们的内容,则原因可能是一个错误。那样的话,请openabugreportaboutit,最好详细说明重现问题的所

windows - Jekyll 服务转换错误 "No such file or directory"

我关注了installationinstructionsforWindows,使用“rouge”语法荧光笔。我用“jekyllnew”创建了新站点并更改为该文件夹。但是,当我尝试运行“bundleexecjekyllserve”时,出现以下错误,我用谷歌搜索却没有结果。Generating...JekyllFeed:GeneratingfeedforpostsConversionerror:Jekyll::Converters::Scssencounteredanerrorwhileconverting'assets/main.scss':Nosuchfileordirectory@r