-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm not sure, but I guess It is depending on the version of windows, I
think I had read somewhere null connection is not applicable on most
recent windows versions...


guerrino di massa a écrit :
> Hello i wrote this:
>  
> import win32net
> ui2={}
> ui2['local'] = "K:" 
> ui2['remote'] = "\\\\pc-test\\C$"
> ui2['asg_type'] = 0
> ui2['username'] = "administrator"
> ui2['domainname'] = ""
> ui2['password'] = "password"
> win32net.NetUseAdd(None,2,ui2)
>  
> and it works...
>  
> but i i try an anonymous bind to ipc$ it doesn't work
>  
> import win32net
> ui2={}
> ui2['local'] = "" 
> ui2['remote'] = "\\\\pc-test\\IPC$"
> ui2['asg_type'] = 0
> ui2['username'] = ""
> ui2['domainname'] = ""
> ui2['password'] = ""
> win32net.NetUseAdd(None,2,ui2)
>  
> and say -> error: (66, 'NetUseAdd', 'Tipo di risorsa di rete non corretto.')
>  
> is it possible to bind a null session to ipc$ win win32.NetUseAdd?
>  
>  
> Many thanks
>  
> guerrino
> 
>  
>  
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> python-win32 mailing list
> python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH45luabe5k24WqmcRAlHYAJ48+MzSmCIBqfrvYlNIibsgiidbiQCg1CEC
2zDxe4iQerMarOl1tMZ3Gdk=
=lhNL
-----END PGP SIGNATURE-----
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to