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
Not sure where to post this so... I am trying to write a python script that mounts a windows network share. Here is the code that I have [code] import win32wnet from win32netcon import RESOURCETYPE_DISK as DISK drive_letter = "K:" path = "\\server\share" win32wnet.WNetAddConnection2(DISK, drive_letter, path) [/code] However, it says : [quote] pywintypes.error : ('67','WNetAddConnection2','The Network name can not be found' ) [/quote] I know that I have the right path. Opening Explorer and typing that in, works. So, I am not sure what the problem is. Any help is appreciated. Thanks in advance! Later, C:\ [small](Edited by [url=http://www.ozoneasylum.com/user/1079]CPrompt[/url] on 11-20-2008 01:47)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »