OZONE Asylum
Forums
OZONE
Python - map widows network drive
This page's ID:
30663
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
OK...how can I suppress the pywintypes errors? If the mapped drive is there, then the code fails and logs this: [quote] pywintypes.error: (85, 'WNetAddConnection2', 'The local device name is already in use.') [/quote] I have tried: [code] try: win32wnet.WNetAddConnection2(DISK,scans_drive,scans_path) except pywintypes.error,details: err_code=details[0] print "Error" [/code] but it says that [quote] 'pywintypes' is not defined [/quote] I've googles for how to work with pywintype errors but it hasn't worked yet. Any ideas? Thanks in advance! Later, C:\
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »