I have a problem running a dos .bat file using VisualCron 8.5 on Windows Server 2016. The batch file calls WSFTPro comamndline with an parameter file like this:echo %date% %time% >>C:\Batch\logs\EINDIND\download_skattekort.log
"C:\Program Files (x86)\Ipswitch\WS_FTP 12\ftpscrpt" -f C:\Batch\SCRIPTS\EINDIND\download_skattekort.txt>>C:\Batch\logs\EINDIND\download_skattekort.log
echo ---------------------------------- >>C:\Batch\logs\EINDIND\download_skattekort.log
As the parameter fil includes a user account specific connection it has to be run as using particular user. I have set this up in VisualCron and I know the credentials work as they are used to copy files to network shares and that works.
If I log on to windows as the user and execute the dos batch fil from a command prompt it works fine
. but when called from visual cron I get this error
[i]The system cannot find the path specified.
The system cannot find the path specified.
'"C:\Program Files\Ipswitch\WS_FTP 12\ftpscrpt"' is not recognized as an internal or external command,
operable program or batch file.
Exception in Task: Non zero exit code
Exit code (9009) description: DNS server not authoritative for zone.
I know it is getting hold of the batch file OK as the two echo comands to a log file work. I'm pretty sure its some Microsoft 'security' thing stopping me from running a program from programsfiles. What I don't understand is it works fine when called from a dos prompt.
Edited by moderator
| Reason: Not specified