Re: Win32 drive mapping... aka "net use"

2005-03-05 Thread Lucas Machado
net use * \\some_server\share_name instead of: net use k: \\server\share Thanks for the help in advance. Also, if anyone could provide a link to good windows api docs for python that would be great. Cheers, --Lucas Machado -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32 drive mapping... aka "net use"

2005-03-05 Thread Lucas Machado
I have already seen the "net help use" and i know how to manage samba shares from a command prompt. What i need help with is using the win32 api for python to manage shares --Lucas -- http://mail.python.org/mailman/listinfo/python-list

handling pywintypes.error exceptions

2005-03-05 Thread Lucas Machado
e.') I know the exception raised in these cases is "pywintypes.error", but how can i differentiate between the two exceptions? Being able to do this is critical for my script Thanks in advance, --Lucas Machado -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32 drive mapping... aka "net use"

2005-03-05 Thread Lucas Machado
Roger Upole wrote: > You could use win32api.GetLogicalDriveStrings to list > the drive letters currently in use, and find the next free > letter. net use * probably does something like that under > the covers. I went and took your advice and this is where I am now: >>> import win32api >>> a = wi

trouble using \ to escape %

2005-04-15 Thread Lucas Machado
t escaping the '%' character. There has to be a way to write '%' to a file. Thanks in advance.. Cheers -Lucas Machado -- http://mail.python.org/mailman/listinfo/python-list