草庐IT

drive_name

全部标签

c# - MoveFileWithProgress 抛出 "The system cannot move the file to a different disk drive"– 为什么?

我有:[SuppressUnmanagedCodeSecurity][DllImport("Kernel32.dll",CharSet=CharSet.Auto,SetLastError=true)]staticexternboolMoveFileWithProgress(stringlpExistingFileName,stringlpNewFileName,CopyProgressRoutinelpProgressRoutine,intdwFlags);publicenumMoveFileOptions{MOVEFILE_COPY_ALLOWED=0x2}并调用它:if(!Move

c - DLL 函数未导出 : Unable to find an entry point named TestFunc

我正忙于了解一点点C/C++,并与C#互操作。我已经检查了几个创建简单的Win32DLL并从C#使用它的示例,但是当我尝试调用我的DLL时,我收到运行时错误:“无法找到名为TestFunc的入口点”。我的DLL看起来像这样,我从一个Win32DLL项目创建它,带有空项目选项:标题:__declspec(dllexport)intTestFunc(char*,char*,char*);代码文件:#include"stdafx.h"#include"TestLib.h"__declspec(dllexport)intTestFunc(char*arg1,char*arg2,char*arg

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

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之外的所有安装

python - cx_Freeze 5.0 : ImportError: No module named 'scipy.__config__'

问题尝试运行使用cx_Freeze构建的.exe时出现以下错误:File"C:\\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64\lib\site-packages\scipy\__init__py",line105infromscipy.__config__importshowasshow_configImportError:Nomodulenamed'scipy.__config__'Duringhandlingoftheaboveexception,anotherexceptionoccurred:...File"C:\\WinPyth

c - IoCreateSymbolicLink 何时返回 STATUS_OBJECT_NAME_COLLISION

当我调用IoCreateSymbolicLink时失败,状态为STATUS_OBJECT_NAME_COLLISION。我的驱动程序中有代码,我试图在NT和DOS之间创建符号链接(symboliclink)名称。一般什么时候会出现这个错误?RtlInitUnicodeString(&deviceName,L"\\Device\\StreamEitor");RtlInitUnicodeString(&symbolicLinkName,L"\\DosDevices\\StreamEitor");status=IoCreateDevice(driverObject,0,&deviceName

windows - Knife 窗 : Network Error: getaddrinfo: Name or service not known (windows:22)

我有一个Ubuntu工作站,我正在尝试引导一个Windows节点。Windows节点在端口2222上打开了ssh。我一直在关注http://docs.opscode.com/plugin_knife_windows.html.ateetor@ateetor-virtual-machine:~/chef/chef-repo$sudogeminstallknife-windows--http-proxy=[REMOVED]Successfullyinstalledknife-windows-0.5.121geminstalledInstallingridocumentationforkni

windows - sliksvn 显示弹出窗口, "There is no disk in the drive"

问题:我使用SlikSVN命令行客户端和Windows8.1机器。当我在任何文件夹中键入svnupdate时,会出现一个消息框,提示“驱动器中没有磁盘。请将磁盘插入驱动器F:”我无法停止或解释为什么会弹出sliksvn这条消息。截图:问题:您知道这可能是什么原因吗?更多详情:按几次“继续”后,它终于进行了更新。它发生在svnupdate和checkout上,但不会发生在svnstatus和info上。我已尝试清除我的SVN凭据。我已经尝试卸载并重新安装SlikSVN。我进行自定义安装,只安装客户端和工具。我没有注意到任何其他程序都会发生这种情况。我的电脑才用了几个星期。我的F:驱动器对

python - Pyinstaller导入错误: cannot import name 'dist' on Windows

我正在尝试使用Pyinstaller(3.3版)在Windows(8.1版)上将Python(3.6版)项目构建到单个exe文件中。该项目包括PyQt5、numpy、matplotlib依赖项。Pyinstaller写道:BuildingEXEfromout00-exe.toccompletedsuccessfully.但是当我运行exe文件时,我得到:...File"distutils\__init__.py",line44,inImportError:cannotimportname'dist'[6748]Failedtoexecutescriptmyproj第44行的文件"dis

c# - 在 Windows 服务中捕获 'external drive inserted' 事件

我正在尝试编写一个super简单的播客到设备下载服务以用于运行。我想它会像这样:每当插入特定设备(通过USB)时,它:从设备中删除所有内容检查大量RSS播客提要中的所有最新条目将这些下载到设备在完成时通知用户。我有一些使用Windows服务的经验,但我不确定如何(使用.NET/C#)捕获“媒体设备/USB硬盘驱动器已插入”事件。有什么建议吗? 最佳答案 最简单的解决方案是定期枚举设备!CodeProject在这里有一篇全面的C#文章:http://www.codeproject.com/KB/system/DriveDetector