Hmm weird. I'll have a go with the .net assembly instead, it seems there is definitely some connection setting issue though as it works fine to internal FTP but not externally :?
- csurfleet
Process winscp = new Process();
winscp.StartInfo.FileName = winScpLocation;
winscp.StartInfo.RedirectStandardInput = true;
winscp.StartInfo.UseShellExecute = false;
winscp.StartInfo.CreateNoWindow = true;
winscp.Start();
winscp.StandardInput.WriteLine("option batch abort");
winscp.StandardInput.WriteLine("option confirm off");
winscp.StandardInput.WriteLine("open ftp://" + ftpUserName + ":" + ftpPassword + "@" + ftpSite + " -passive=off");
winscp.StandardInput.WriteLine("put " + appOfflinePath);
winscp.StandardInput.WriteLine("exit");
winscp.StandardInput.Close();
winscp.WaitForExit();