Advertisement
Guest User

Untitled

a guest
Mar 13th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import win32api
  2. import win32net
  3. ip = '192.168.1.18'
  4. username = 'ram'
  5. password = 'ram@123'
  6.  
  7. use_dict={}
  8. use_dict['remote']=unicode('\\\\192.168.1.18\C$')
  9. use_dict['password']=unicode(password)
  10. use_dict['username']=unicode(username)
  11. win32net.NetUseAdd(None, 2, use_dict)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement