Hello,
I have 2 files which are along the lines of:
#1 - InitialBatchFileToCall_FTPGetFiles.bat - (Calls the FTPGetFiles.txt file)
#2 - FTPGetFiles.txt - (Contains the FTP server, username-password, Get commands, & files to copy down.)
When I run #1 file manually this entire FTP process of copying down the files succeeds (including #2 script file).
But when I set it up as SQL Agent job step Type as 'Operating system (CmdExec)' with the following Command and run via SQL Agent:
cmd.exe /c "G:\FTP\InitialBatchFileToCall_FTPGetFiles.bat"
it fails with the following error message:
Error opening script file FTPGetFiles.txt.
How can I schedule & run this .bat file automatically?
(Was thinking of Windows Task Scheduler but believe it wouldn't be ideal within our other clustered environment in having to set it up on both nodes and always remember to have one disabled to avoid the task attempting to run simultaneous twice.)
Thanks in advance.