我想从具有分布式文件系统体系结构的Windows网络位置获得类似ping的响应,例如,在Python中获取网络位置的DFS路径
path = r'\\path\to\some\shared\folder_x'
delay = ping_func(path)
print delay # return response in milliseconds ?
234
一旦我有主机,我可以轻松地ping位置。
我可以通过查看Windows资源管理器中的DFS选项卡来确定folder_x
的主机名,例如:
\\hostcomputer.server.uk\shared$\folder_x
如何在Python中以编程方式执行此操作?
我想澄清一下,我不想诉诸使用'dfsutil.exe'我希望解决方案是一个纯python解决方案。 –
这是否有助于https://mail.python.org/pipermail/python-win32/2008-August/008115.html? –
它似乎是接近但不是那里 –