[Moderator note: moved post from Networking to Applications General Discussion.]
Hello. I bumped into a problem with Windows Task scheduler...
So i made a batch file that is supposed to upload files of certain file type to external ftp and then move the files from the local folder to another folder while creating a log file of the uploads.
When run manually the script runs flawlesly, uploads all files, create the log and move the files.
However when i create a task to run every day it simply does not.
Here is the script:
ftps -s:\\server\MainFolder\Subfolder\Export\Credentials.txt ftp.name.com -a > \\server\MainFolder\Subfolder\Export\FTPLOG.log
move \\server\MainFolder\Subfolder\Export\*.xml \\server\MainFolder\Subfolder\Export\Exported
where Credentials.txt contains ftp logs and commands but i will post only commands:
user
password
prompt
quote pasv
lcd \\server\MainFolder\Subfolder\Export
binary
mput *.xml
bye
I do have ftps.exe in the folder that contains the batch file and on the task i specify "start in" with the same location, however the task does not run at all and gives me error 203
Where do i break things?
Hello. I bumped into a problem with Windows Task scheduler...
So i made a batch file that is supposed to upload files of certain file type to external ftp and then move the files from the local folder to another folder while creating a log file of the uploads.
When run manually the script runs flawlesly, uploads all files, create the log and move the files.
However when i create a task to run every day it simply does not.
Here is the script:
ftps -s:\\server\MainFolder\Subfolder\Export\Credentials.txt ftp.name.com -a > \\server\MainFolder\Subfolder\Export\FTPLOG.log
move \\server\MainFolder\Subfolder\Export\*.xml \\server\MainFolder\Subfolder\Export\Exported
where Credentials.txt contains ftp logs and commands but i will post only commands:
user
password
prompt
quote pasv
lcd \\server\MainFolder\Subfolder\Export
binary
mput *.xml
bye
I do have ftps.exe in the folder that contains the batch file and on the task i specify "start in" with the same location, however the task does not run at all and gives me error 203
Where do i break things?