Re: Winscp 4.27 broken compared to 4.21
Can you post a log file from both versions?
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
string command = "option confirm off\n" +
"open session\n" +
"cd og\n" +
"option transfer ascii\n" +
"get *C.TXT " + _path + @"\download\" + "\n" +
"close\n" +
"exit";
Process winscp = new Process();
winscp.StartInfo.Arguments = "/log=" + logname;
winscp.StartInfo.FileName = scpDir + "winscp.com";
winscp.StartInfo.UseShellExecute = false;
winscp.StartInfo.RedirectStandardInput = true;
winscp.StartInfo.RedirectStandardOutput = true;
winscp.StartInfo.CreateNoWindow = true;
winscp.Start();
foreach (string cmd in command.Split('\n'))
{
winscp.StandardInput.WriteLine(cmd);
}
//winscp.StandardInput.WriteLine(command);
winscp.StandardInput.Close();
string output = winscp.StandardOutput.ReadToEnd();
LogMsg(" scpCommands output " + output);
/// Wait until WinSCP finishes
winscp.WaitForExit();
winscp> option transfer ascii
transfer ascii
winscp> get 100507OGPEML* D:\crmfacil\crons\clientfiles\PAC\download\
100507OGPEML1.TXT | 672 KiB | 2523.5 KiB/s | ascii | 100%
100507OGPEMLC.TXT | 0 KiB | 1530.6 KiB/s | ascii | 100%
winscp> close