On Computer A (my computer), I have a Perl script that accesses a file directory on Computer B, a computer on the same network. My Perl script accesses that computer because I have linked it to my R:drive.
Now let’s say I want Computer C (an computer designed for automation) to run this script. I cannot map Computer B to a drive, as Computer C is used solely for automation. I have access to Computer C’s command line, and am running Jenkins on it for automation.
To further complicate things, Computer B requires a username and password to sign in.
To map it, I entered the typical 12.345.67.89 and Username and Password. Again, Computer C has no monitor and cannot do this manually.
So here is my question: does Perl or the command line have any capability to do this? Essentially, can I sign into this network computer for a single session, using the username and password, every time I want to access the necessary files?
If you just want to map a drive from the command-line, that’s easy enough.
net use