net use commad using paramiko exec_command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pythonbegn
    New Member
    • Nov 2013
    • 1

    net use commad using paramiko exec_command

    Code:
    command = "net use" + " * " + "\\" + sharepath+ " " + "password" + " " + "/u:"+"domainname" + "\\username"
    
    sshconnObj.exec_command(command)
    my intention is to execute this command in windows . i see the command formation is correct but it gives me error :
    syntax error for net use command

    when i try thr same command maually it works in windows
    Last edited by Rabbit; Nov 7 '13, 06:38 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
Working...