Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Anonymous wrote:

Also, there seems to be an error everytime I have a batch file called automatically to run the Winscp script. It works great manually, only when using task scheduler do I get issues. Error code 3.

It might be this problem:
https://winscp.net/tracker/996
Make sure you are using the latest version of WinSCP (and restart your server after upgrade).
Joshuas

using winscp.com does not solve the problem. Its crazy I can manually run the script no problem but when Task Scheduler tries the world blows up.
Guest

Also, there seems to be an error everytime I have a batch file called automatically to run the Winscp script. It works great manually, only when using task scheduler do I get issues. Error code 3.
Joshuas

No, I as able to add to the winscp script text file by adding !D!M!Y... How can I set it to only tell me what files it added or extract that information from the log?
martin

Re: Send a log to a file after a script runs

WinSCP session log includes a timestamp.
Possibly you mean something else by a "log" (WinSCP console output redirected to a file?).
Joshuas

well I figured it out by myself. now how can I add a timestamp to the log
Joshuas

Send a log to a file after a script runs

Hi,

I have successfully written a script to sync all my SFTP with a cloud storage I have set up. New files are added every day and I have the script being called a few times a day. Question: How can I output the results of the log to a text file or send an email to myself with what the results were or what new files were synched.. Is there a way of doing this?> Help is appreciated mucho mucho