Apr-20-2024, 05:34 AM
Greetings to those that still up at this time!
I'm failing to map network shares.
I'm identifying "letters not in use" for a share to mount and use it as a variable
and using a list of IPs to connect to.
Here is sniped:

I'm failing to map network shares.
I'm identifying "letters not in use" for a share to mount and use it as a variable
and using a list of IPs to connect to.
Here is sniped:
import subprocess drl = 'A' # Script identifies the letter not used for mounting shares e_ip = '10.0.0.7' # IP from IP list mp_string = f"net use {drl}:\\\\{e_ip}\\c$ /u:someuser somepassword" print(f" -- {mp_string}") subprocess.call(mp_string)Could you help me with this?