Windows Task scheduler action -> argument issue

Advertisement

bquac23
Guest

Windows Task scheduler action -> argument issue

I am currently trying to automate a process of ftp-ing a file from my computer to an FTP server using Windows Task scheduler, WinSCP and adding in the commands in the argument section of "actions". The parameters I passed to Task Scheduler were as follows:
/log=c:\Users\xxxx\Desktop\linden\linden.log /command "open ftp://user:pass@ftpserver.com/" "put C:\test.txt /Observations/folder/" "exit"
It looks like the command executed fine and in the log I see that everything ran successfully. I attached the portion of the log for reference. But when I actually went into the folder to check the file is missing/not there.

Please advise!

Reply with quote

Advertisement

bquac23
Guest

windows task scheduler action ->argument issue

Thanks for the input. After numerous attempts, I've gotten it down to one last issue. When i try to send the file, all the logs says that it was sent successfully but nothing appears on the FTP server. if i rename the file by renaming the file by adding a character, the file sends correctly. This also holds true if I remove a character while I rename. But I just can't ftp the file as is.

My current task scheduler command is the following:
/log=C:\PROGRA~1\destination path /command "open ftp://serverlogininfo" "put -latest C:\PROGRA~1\destination path\* /ftp/path/" "exit"
Please advise.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: windows task scheduler action ->argument issue

Maybe you have this "problem":
Why is uploaded file not showing in a remote directory or showing with a different name?

If not, please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum