Re: Console crashes when started from .Net
I've been writing this in VB.Net :oops: (Not my choice):
Dim objStarupInfo As System.Diagnostics.ProcessStartInfo
objStarupInfo = New System.Diagnostics.ProcessStartInfo(System.Windows.Forms.Application.StartupPath & "WinSCP3\WinSCP3.com")
'Setting startup parameters
'Redirecting input and output streams
objStarupInfo.CreateNoWindow = True
objStarupInfo.RedirectStandardInput = True
objStarupInfo.RedirectStandardOutput = True
objStarupInfo.RedirectStandardError = True
objStarupInfo.UseShellExecute = False
objStarupInfo.WorkingDirectory = System.Windows.Forms.Application.StartupPath & "\WinSCP3"
Me.m_objSCPConsole = New Process(objStarupInfo)
Me.m_objSCPConsole.Start()
Dim objStarupInfo As System.Diagnostics.ProcessStartInfo
objStarupInfo = New System.Diagnostics.ProcessStartInfo(System.Windows.Forms.Application.StartupPath & "WinSCP3\WinSCP3.com")
'Setting startup parameters
'Redirecting input and output streams
objStarupInfo.CreateNoWindow = True
objStarupInfo.RedirectStandardInput = True
objStarupInfo.RedirectStandardOutput = True
objStarupInfo.RedirectStandardError = True
objStarupInfo.UseShellExecute = False
objStarupInfo.WorkingDirectory = System.Windows.Forms.Application.StartupPath & "\WinSCP3"
Me.m_objSCPConsole = New Process(objStarupInfo)
Me.m_objSCPConsole.Start()