I have a server with IP address for example: 10,10,10,10. I am trying to remote access this folder and analyze data in Python. Currently, I can use windows remote control to connect this server(server has windows 7 installed) with account and password. I can also use window explorer by just typing this ip address \10.10.10.10, it will prompt me to input account and password, but I can access all files directly. My question is how I can directly access this computer/folder/files through Python? Because the drive has password protection, I have to manually type password through windows explorer, and then use Python command to access the folder eg:
os.listdir("\\10.10.10.10")
I tried to use
os.system("net use \\10.10.10.10. /user:user password")
and Python returns with me "System error 67 has occurred. The network name cannot be found. 2" Does anyone know how I can solve this? Thank you!