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 WinSCP.com. 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 = "WinSCP.com"
.UseShellExecute = False
.RedirectStandardInput = True
.CreateNoWindow = True
End With
SftpProcess.Start()
With SftpProcess.StandardInput
.WriteLine(UserOpenSessionString)
.WriteLine("call /alps/system/upd_add.ksh")
.WriteLine("exit")
.Close()
End With
SftpProcess.WaitForExit()
Dim SftpProcess As Process = New Process()
With SftpProcess.StartInfo
.FileName = "WinSCP.com"
.UseShellExecute = False
.RedirectStandardInput = True
.CreateNoWindow = True
End With
SftpProcess.Start()
With SftpProcess.StandardInput
.WriteLine(UserOpenSessionString)
.WriteLine("call /alps/system/upd_add.ksh")
.WriteLine("exit")
.Close()
End With
SftpProcess.WaitForExit()