We have a lengthy agent that creates 7 .txt files on the domino server. The last step it to move them from the domino server to an sql server.
We have code that WORKS if you run it manually, but gives an ‘Illegal function called’ error if it is scheduled. We’re thinking it is some sort of permission issue? Any ideas?
The below batch line contains:
c:\windows\system32\ftp.exe -s:Ftp_NotesToSql_parm.txt > Ftp_NotesToSql.log
The last script lib in the agent is this:
Static Public Function Execute_Batch()
Dim batch As Variant
directory$="F:\etmrs\"
Chdir directory$
file$=Dir$("*.bat",0)
While file$<>""
Print Cstr(file$)
temp=file$
file$=Dir$()
Wend
batch=Shell("F:\etmrs\"&temp)
End Function