有人知道我如何确定映射网络驱动器的服务器和共享名吗?
例如:
import win32file, win32api for logDrive in win32api.GetLogicalDriveStrings().split("\x00"): if win32file.GetDriveType(logDrive) != win32file.DRIVE_REMOTE: continue # get server and share name here
是否有一个方便的API调用?
谢谢。
您必须调用win32 api: WNetGetUniversalName