...
Make sure JobScheduler is running as a user that has permission to access the network drive(s) (Check the services configuration to set a different user).
Configure a scheduler start script to mount the network drive:
Code Block language vb <scheduler_script name = "mount_drives"> <script language="VBScript"> <![CDATA[ Function spooler_init Dim ws, return_code, command *command = "net.exe use X: **\\server\dir * <file://%5C%5Cserver%5Cdir>*" *Set" 'See "net use /?" for more information Set ws = CreateObject("Wscript.shell") return_code = ws.run( command, 0, 1 ) Set ws = Nothing If return_code > 0 Then spooler_log.warn("Failed to mount drives: " & return_code) spooler_init = true End Function ]]> </script> </scheduler_script>
Put the
<script>
element intoconfig/scheduler.xml
file between the<process_classes>
and<http_server>
elements.Restart the JobScheduler
...