Mapping new drieve
Posted: Thu Dec 30, 2004 4:07 pm
Hey,
Below is coding that I have in a control job. It is suppose to map a remote drive so I can get and copy files from the remote (I use a batch script and parmeters).
As you can see from the error at the very bottom of this post that it does not recognize the drive. I have the drive mapped on the server and the server (which has the DS software) recognizes the drive. How do I get the job to recognize the drives? The coding below has worked in the past, but now I'm trying to map new drives.
Any suggestions!!
Thanks in advanced.
Steve
CODING IN CONTROL JOB
*Map remote network drive so we can copy files to local drive
Call DSLogInfo("Mapping to remote network server drive K", "Job Control")
Call DSExecute("NT", "net use K: \\SecureFtp\FTP Tote ", msgs, rtncd )
Call DSLogInfo("msgs is ":msgs, "Job Control")
Call DSLogInfo("rtncd is ":rtncd, "Job Control")
if rtncd = 2
then
Call DSLogInfo("Drive already mapped, continuing on with job", "Job Control")
end
else
Call DSLogInfo("Successfully mapped drive", "Job Control")
End
MESSAGE FROM THE LOG
Message:
CTRL_JOB_EQU_FTP..JobControl (Job Control): msgs is K: has a remembered connection to \\Secureftp\FTP TOTE. Do you
want to overwrite the remembered connection? (Y/N) [Y]:
No valid response was provided.
MESSAGE FROM LOG
Message:
CTRL_JOB_EQU_FTP..JobControl (Job Control): msgs is 1
New connections will be remembered.
Status Local Remote Network
-------------------------------------------------------------------------------
Unavailable F: \\sps\united Microsoft Windows Network
Unavailable G: \\sps\datawhse Microsoft Windows Network
Unavailable H: \\Airacct\Tote Microsoft Windows Network
Unavailable I: \\Swilbert\SteveWCD Microsoft Windows Network
Unavailable J: \\Sps\Datawhse\ToteSettlementProduction
Microsoft Windows Network
Unavailable K: \\Secureftp\FTP TOTE Microsoft Windows Network
Unavailable L: \\Swilbert\LACIE (E) Microsoft Windows Network
Unavailable R: \\emperor\groups Microsoft Windows Network
The command completed successfully.
The system cannot find the drive specified.
2
Below is coding that I have in a control job. It is suppose to map a remote drive so I can get and copy files from the remote (I use a batch script and parmeters).
As you can see from the error at the very bottom of this post that it does not recognize the drive. I have the drive mapped on the server and the server (which has the DS software) recognizes the drive. How do I get the job to recognize the drives? The coding below has worked in the past, but now I'm trying to map new drives.
Any suggestions!!
Thanks in advanced.
Steve
CODING IN CONTROL JOB
*Map remote network drive so we can copy files to local drive
Call DSLogInfo("Mapping to remote network server drive K", "Job Control")
Call DSExecute("NT", "net use K: \\SecureFtp\FTP Tote ", msgs, rtncd )
Call DSLogInfo("msgs is ":msgs, "Job Control")
Call DSLogInfo("rtncd is ":rtncd, "Job Control")
if rtncd = 2
then
Call DSLogInfo("Drive already mapped, continuing on with job", "Job Control")
end
else
Call DSLogInfo("Successfully mapped drive", "Job Control")
End
MESSAGE FROM THE LOG
Message:
CTRL_JOB_EQU_FTP..JobControl (Job Control): msgs is K: has a remembered connection to \\Secureftp\FTP TOTE. Do you
want to overwrite the remembered connection? (Y/N) [Y]:
No valid response was provided.
MESSAGE FROM LOG
Message:
CTRL_JOB_EQU_FTP..JobControl (Job Control): msgs is 1
New connections will be remembered.
Status Local Remote Network
-------------------------------------------------------------------------------
Unavailable F: \\sps\united Microsoft Windows Network
Unavailable G: \\sps\datawhse Microsoft Windows Network
Unavailable H: \\Airacct\Tote Microsoft Windows Network
Unavailable I: \\Swilbert\SteveWCD Microsoft Windows Network
Unavailable J: \\Sps\Datawhse\ToteSettlementProduction
Microsoft Windows Network
Unavailable K: \\Secureftp\FTP TOTE Microsoft Windows Network
Unavailable L: \\Swilbert\LACIE (E) Microsoft Windows Network
Unavailable R: \\emperor\groups Microsoft Windows Network
The command completed successfully.
The system cannot find the drive specified.
2