.NET Framework - How to run a WINSCP.EXE command in ASP.NET program ???

Asked By bienwell on 21-Sep-07 09:42 AM
Hi all,

I've got a trouble of uploading some files with large size (around 120MB)
into the web server in my ASP.NET application. What I can fix is to check
the file size from client side first, and if it greater than a size I want
then I will run the command WINSCP.EXE to copy the file from client into the
web server, instead of using FileObject.PostedFile.SaveAs(SaveLocation).
Can you provide me the syntax to the command winscp?  My web server was
installed WINSSHD already.

Thanks in advance.

bruce barker replied on 21-Sep-07 11:20 AM
as you will need to write an active/x control to check the filesize,
this control can call winscp via the win32 api createprocess.

-- bruce (sqlwork.com)