Hi,
Having trouble with this - how can i execute a batch file from a windows service but have execution and results visible on the console during execution?
Currently i'm executing the batch file via:
Dim pStart As New System.Diagnostics.Process Dim startInfo As New System.Diagnostics.ProcessStartInfo(strSourceFolder & strFileName) 'startInfo.RedirectStandardOutput = True startInfo.WindowStyle = ProcessWindowStyle.Normal startInfo.UseShellExecute = False pStart.StartInfo.CreateNoWindow = False pStart = System.Diagnostics.Process.Start(startInfo) pStart.WaitForExit() pStart.Close()
thanks!
Having trouble with this - how can i execute a batch file from a windows service but have execution and results visible on the console during execution?
Currently i'm executing the batch file via:
Dim pStart As New System.Diagnostics.Process Dim startInfo As New System.Diagnostics.ProcessStartInfo(strSourceFolder & strFileName) 'startInfo.RedirectStandardOutput = True startInfo.WindowStyle = ProcessWindowStyle.Normal startInfo.UseShellExecute = False pStart.StartInfo.CreateNoWindow = False pStart = System.Diagnostics.Process.Start(startInfo) pStart.WaitForExit() pStart.Close()
thanks!