Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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)


Topic review


Re: After update to 5.19.5 – will not log

@jensohb: We need some information. What version where you using before? Is this about GUI or scripting? If scripting, what does the WinSCP console output say when it fails to log? What (if) command-line syntax are you using?

After update to 5.19.5 – will not log

After update to 5.19.5 – will not log

Re: I cannot generate log file with 5.1.2 suddenly...

@LukeHuang: First of all, please upgrade to the latest version of WinSCP.
If that does not help, we need way more details. What prevents you from generating the log?

I cannot generate log file with 5.1.2 suddenly...

I cannot generate the log file with 5.1.2 suddenly. Can anyone help?

Re: Can not create log file

@tdguitar: Make sure the account that runs the script has write access to C:\.

Can not create log file

I have a function with creating log xml file like below. It run well on local machine, but when I publish it to be used as client-server, it can not create a log file. Please help me to check it.
const string logname = "log.xml";
Process winscp = new Process();
winscp.StartInfo.FileName = "C:\\Program Files\\WinSCP\\";
winscp.StartInfo.Arguments = "/log=C:\\"" + logname + "\"";
winscp.StartInfo.UseShellExecute = false;
winscp.StartInfo.CreateNoWindow = true;
winscp.StandardInput.WriteLine("option batch abort");
winscp.StandardInput.WriteLine("option confirm off");
winscp.StandardInput.WriteLine("open mysession");
string output = winscp.StandardOutput.ReadToEnd();
XPathDocument log = new XPathDocument(logname);
XmlNamespaceManager ns = new XmlNamespaceManager(new NameTable());
ns.AddNamespace("w", "");
XPathNavigator nav = log.CreateNavigator();
XPathNodeIterator files = nav.Select("//w:file", ns);
Console.WriteLine(string.Format("There are {0} files and subdirectories:", files.Count));
foreach (XPathNavigator file in files)
    Console.WriteLine(file.SelectSingleNode("w:filename/@value", ns).Value);

Re: Log file not generating.

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Re: Log file not generating.

I just upgraded to the latest version. I never see the winscp.log file get created in the C:\EMT folder or anywhere else.

I should also clarify that the FTP upload is working correctly. I just don't get a log file.


Re: Log file not generating.

Can you try it with the latest version?

Log file not generating.

I am working on an issue and need to generate a log file. I am running WinSCP from a bat file below:
c:\WinSCP\WinSCP3.exe /console /script="c:\EMT\AutoFTP.txt" /log="C:\EMT\winscp.log"

No log file ever gets generated. Thanks.