net use m: \\STORAGE-72AD\NetHDD2
Actually that is specific to my system but it turns out it's the solution. Back in post #18 I asked:
Not to be obvious, but do you have a connection to the J: drive?
At first glance it's a throwaway question, and you probably do have a connection under your id. If you place a job on the scheduler through the GUI, the job credentials are your id. However, if you use the
AT command it turns out the job credentials are SYSTEM, for which probably no such connection exists.
Bottom line is your code needs to map the network drive; the easiest way is
net use.
I only stumbled on this because I rarely need my network drives; writing network connection logic only when needed.
Let's hope this works.
![Cool 8)](https://www.computerhope.com/forum/Smileys/classic/cool.gif)
PS.
net use /? at a command prompt will explain how to use the command