[python-win32] os.popen/winpipe

Jürgen Kareta python at kareta.de
Thu Nov 18 19:59:16 CET 2004


Hi Tim,

#
# The local / remote items could just as well
#  be LPT2: and \\printserver\printer
#
win32net.NetUseAdd (
  None,
  0,
  {
    'local' : "K:",
    'remote' : r"\\tdi_nt4a\user"
  }
)
</code>

results in Error 124 INVALID LEVEL

use_info = {
'local':'v:',
'remote':r'\\server\directory',
'asg_type':0,
'username':'user',
'password':'pwd'}
win32net.NetUseAdd(None,2,use_info)

works fine. So I found a solution, but Py_USE INFO 0 without user/pw is more 
charmy. I googled and found lots of lists in the errorcode/description manner, 
but found no description what that means.

Jürgen


More information about the Python-win32 mailing list