摘要: 想要通过wmi接口修改windows盘符,该如何实现呢?wmi提供了Win32_Volume类,通过该类可以修改盘符。 python脚本 powershell脚本 阅读全文
posted @ 2017-06-18 10:10 妙音 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 想要通过wmi接口修改windows盘符,该如何实现呢?wmi提供了Win32_Volume类,通过该类可以修改盘符。python脚本import wmi_root_conn = wmi.WMI(privileges=["Shutdown"])query_str = ... 阅读全文
posted @ 2017-06-18 10:03 妙音 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 百度网盘地址:不可用了ftp地址ftp://dx.jingzong.org/iso/02/041/ 阅读全文
posted @ 2017-04-22 12:27 妙音 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 在windows中通过subprocess调用cmd命令行,命令中包含中文是很令人头痛的事。由于cmd控制台用的是gbk编码,而python用的是utf-8。utf-8的字符串,在gbk编码的控制台上运行,当然会运行不了。假如再要你兼容繁体版的windows,此时更麻... 阅读全文
posted @ 2017-04-22 12:20 妙音 阅读(989) 评论(0) 推荐(0) 编辑
摘要: 在powershell中运行Get-VolumePS C:\Users\Administrator> Get-VolumeDriveLetter FileSystemLabel FileSystem DriveType HealthStatus Operational... 阅读全文
posted @ 2017-04-17 22:56 妙音 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: exe路径>>> sys.executable'C:\\Python27\\python.exe'lib路径>>> sys.prefix'C:\\Python27' 阅读全文
posted @ 2017-04-17 22:47 妙音 阅读(4137) 评论(0) 推荐(0) 编辑
摘要: 在windows上,可以通过控制面板,查看软件安装情况。那么除此之外还有其它方法吗?powershell命令PS C:\Users\wyq> Get-WmiObject -class Win32_Product |Select-Object -Property nam... 阅读全文
posted @ 2017-04-09 14:09 妙音 阅读(3248) 评论(0) 推荐(0) 编辑
摘要: 运行命令subprocess.Popen(cmd, close_fds=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)出现错误ValueError: close_fds is not supported on... 阅读全文
posted @ 2017-03-21 21:54 妙音 阅读(1426) 评论(0) 推荐(0) 编辑
摘要: PS C:\> get-vm 虚拟机名称 |get-vmbiosVMName StartupOrder NumLockEnabled------ ------------... 阅读全文
posted @ 2017-02-02 21:57 妙音 阅读(1332) 评论(0) 推荐(0) 编辑
摘要: PS C:\Users\xxx> Test-NetConnection 192.168.1.13ComputerName : 192.168.1.13RemoteAddress : 192.168.1.13InterfaceAli... 阅读全文
posted @ 2017-02-02 21:50 妙音 阅读(573) 评论(0) 推荐(0) 编辑