willsonlincake 发表于 2022-4-29 20:57:52

Python局域网网盘共享实现

import netuse

# Get mapped net drive

print netuse.listNetDrive()

# Map a new drive, return the drive letter

print netuse.mapNetDrive(r’\serverpath’)

# Remove a mapped drive

netuse.removeNetDrive(‘Z:’)

# Get the usage of net drive: ( free bytes, total bytes )

print netuse.usageReport(‘Z:’)
页: [1]
查看完整版本: Python局域网网盘共享实现