Post a reply

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


Running a .bat script via WinSCPNet.dll

Hello, we are no longer getting the time out error, thanks for the help. Our latest issue is not being able to run a string of script commands. We were executing .bat scripts in the past to run commands on the UNIX server using the old method of A sample of how we used to do it is below. Is there some way we can run a string of commands using the new WinSCPNet.dll?

Dim SftpProcess As Process = New Process()
With SftpProcess.StartInfo
.FileName = ""
.UseShellExecute = False
.RedirectStandardInput = True
.CreateNoWindow = True
End With

With SftpProcess.StandardInput
.WriteLine("call /alps/system/upd_add.ksh")
End With