473,416 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

system.Diagnostics.Process Problem

Hello,

I am attempting to start a cmd.exe process and pass several .vbs scripts
(with additional parameters) and then read the output from the scripts and
make "notes" in a DataTable (the "notes" not being the issue).

Beginning with...

Dim objProcess As Process
Dim objProcessStartInfo As New ProcessStartInfo

objProcessStartInfo.FileName =
System.Environment.GetEnvironmentVariable("ComSpec ")
objProcessStartInfo.WorkingDirectory =
System.Environment.GetEnvironmentVariable("SystemR oot")
objProcessStartInfo.RedirectStandardOutput = True
objProcessStartInfo.RedirectStandardInput = True
objProcessStartInfo.RedirectStandardError = True
objProcessStartInfo.UseShellExecute = False
objProcessStartInfo.WindowStyle = ProcessWindowStyle.Normal
objProcess = Process.Start(objProcessStartInfo)

I then loop through a DataTable, attempting to fire off VBScripts (or
Batch/EXE)(a.k.a. strApplicationAction) using:
objProcess.StandardInput.WriteLine(strApplicationA ction)
Ex. strApplicationAction = "C:\Scratch\CopyFile.vbs MyComputer"

then attempt to read the output from the VBScript using
objProcess.StandardOutput. I have tried all of the following:

' Problem: EndOfStream is not reached when VBScript ends only when cmd.exe
closes.
Do While (objProcess.StandardOutput.EndOfStream = False)
strOutput &= objProcess.StandardOutput.ReadLine & vbCrLf
Loop

' Problem: Hangs because it is looking for the exit of the cmd.exe
strOutput = objProcess.StandardOutput.ReadToEnd

' If condition not reached until cmd.exe is closed
Do While (objProcess.StandardOutput.EndOfStream = False)
strTemp &= objProcess.StandardOutput.ReadLine
if (strTemp = System.Environment.GetEnvironmentVariable("SystemR oot") &
">") then exit do
Loop

Note: I can collect the StandardOutput. I am just getting tripped up on
knowing when the cmd.exe is idle. What I am looking for is the ability to
determine if the cmd.exe is finished processing the first VBScript/Batch/EXE
and then fire another one using
objProcess.StandardInput.WriteLine(strApplicationA ction) without having to
launch a new cmd.exe for each ApplicationAction (I already have that working
~ 100 scripts = 100 cmd.exe (or cscript.exe)). Is it even possible to read
the status of cmd.exe? Do I need to use StandardError somehow? I have
already tried WaitForInputIdle (GUI only).

Thanks in advance.
Mar 8 '07 #1
5 3403
I have noticed that when applications such as cscript % are executing the
title of CMD changes to somthing like

"C:\windows\system32\cmd.exe - Cscript AD_addNew.vbs"

then... once finished it changes back to

"C:\windows\system32\cmd.exe"

If you use sendmessage(hwnd, WM_GETTEXT, param, param)

You could read the CMD's caption.

infact I seem to remember the Process class has a method that reads the
caption of the main window of an application.

Mike.
"gmyers" <gm****@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...
Hello,

I am attempting to start a cmd.exe process and pass several .vbs scripts
(with additional parameters) and then read the output from the scripts and
make "notes" in a DataTable (the "notes" not being the issue).

Beginning with...

Dim objProcess As Process
Dim objProcessStartInfo As New ProcessStartInfo

objProcessStartInfo.FileName =
System.Environment.GetEnvironmentVariable("ComSpec ")
objProcessStartInfo.WorkingDirectory =
System.Environment.GetEnvironmentVariable("SystemR oot")
objProcessStartInfo.RedirectStandardOutput = True
objProcessStartInfo.RedirectStandardInput = True
objProcessStartInfo.RedirectStandardError = True
objProcessStartInfo.UseShellExecute = False
objProcessStartInfo.WindowStyle = ProcessWindowStyle.Normal
objProcess = Process.Start(objProcessStartInfo)

I then loop through a DataTable, attempting to fire off VBScripts (or
Batch/EXE)(a.k.a. strApplicationAction) using:
objProcess.StandardInput.WriteLine(strApplicationA ction)
Ex. strApplicationAction = "C:\Scratch\CopyFile.vbs MyComputer"

then attempt to read the output from the VBScript using
objProcess.StandardOutput. I have tried all of the following:

' Problem: EndOfStream is not reached when VBScript ends only when cmd.exe
closes.
Do While (objProcess.StandardOutput.EndOfStream = False)
strOutput &= objProcess.StandardOutput.ReadLine & vbCrLf
Loop

' Problem: Hangs because it is looking for the exit of the cmd.exe
strOutput = objProcess.StandardOutput.ReadToEnd

' If condition not reached until cmd.exe is closed
Do While (objProcess.StandardOutput.EndOfStream = False)
strTemp &= objProcess.StandardOutput.ReadLine
if (strTemp = System.Environment.GetEnvironmentVariable("SystemR oot") &
">") then exit do
Loop

Note: I can collect the StandardOutput. I am just getting tripped up on
knowing when the cmd.exe is idle. What I am looking for is the ability to
determine if the cmd.exe is finished processing the first
VBScript/Batch/EXE
and then fire another one using
objProcess.StandardInput.WriteLine(strApplicationA ction) without having to
launch a new cmd.exe for each ApplicationAction (I already have that
working
~ 100 scripts = 100 cmd.exe (or cscript.exe)). Is it even possible to
read
the status of cmd.exe? Do I need to use StandardError somehow? I have
already tried WaitForInputIdle (GUI only).

Thanks in advance.

Mar 8 '07 #2
Hello Mike,

Thanks for you response. Yes, I've seen that as well (happens with any
command sent to the cmd.exe) but I am not clear on your response. Why do I
need to read the CMD's caption? I looked up sendmessage and was unable to
determine the route that you are suggesting. I have an open connection the
process, I just need to be able to identify when the cmd.exe has finished
processing the previous command that was sent so that I may send another one.

Thank you
"Michael M." wrote:
I have noticed that when applications such as cscript % are executing the
title of CMD changes to somthing like

"C:\windows\system32\cmd.exe - Cscript AD_addNew.vbs"

then... once finished it changes back to

"C:\windows\system32\cmd.exe"

If you use sendmessage(hwnd, WM_GETTEXT, param, param)

You could read the CMD's caption.

infact I seem to remember the Process class has a method that reads the
caption of the main window of an application.

Mike.
"gmyers" <gm****@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...
Hello,

I am attempting to start a cmd.exe process and pass several .vbs scripts
(with additional parameters) and then read the output from the scripts and
make "notes" in a DataTable (the "notes" not being the issue).

Beginning with...

Dim objProcess As Process
Dim objProcessStartInfo As New ProcessStartInfo

objProcessStartInfo.FileName =
System.Environment.GetEnvironmentVariable("ComSpec ")
objProcessStartInfo.WorkingDirectory =
System.Environment.GetEnvironmentVariable("SystemR oot")
objProcessStartInfo.RedirectStandardOutput = True
objProcessStartInfo.RedirectStandardInput = True
objProcessStartInfo.RedirectStandardError = True
objProcessStartInfo.UseShellExecute = False
objProcessStartInfo.WindowStyle = ProcessWindowStyle.Normal
objProcess = Process.Start(objProcessStartInfo)

I then loop through a DataTable, attempting to fire off VBScripts (or
Batch/EXE)(a.k.a. strApplicationAction) using:
objProcess.StandardInput.WriteLine(strApplicationA ction)
Ex. strApplicationAction = "C:\Scratch\CopyFile.vbs MyComputer"

then attempt to read the output from the VBScript using
objProcess.StandardOutput. I have tried all of the following:

' Problem: EndOfStream is not reached when VBScript ends only when cmd.exe
closes.
Do While (objProcess.StandardOutput.EndOfStream = False)
strOutput &= objProcess.StandardOutput.ReadLine & vbCrLf
Loop

' Problem: Hangs because it is looking for the exit of the cmd.exe
strOutput = objProcess.StandardOutput.ReadToEnd

' If condition not reached until cmd.exe is closed
Do While (objProcess.StandardOutput.EndOfStream = False)
strTemp &= objProcess.StandardOutput.ReadLine
if (strTemp = System.Environment.GetEnvironmentVariable("SystemR oot") &
">") then exit do
Loop

Note: I can collect the StandardOutput. I am just getting tripped up on
knowing when the cmd.exe is idle. What I am looking for is the ability to
determine if the cmd.exe is finished processing the first
VBScript/Batch/EXE
and then fire another one using
objProcess.StandardInput.WriteLine(strApplicationA ction) without having to
launch a new cmd.exe for each ApplicationAction (I already have that
working
~ 100 scripts = 100 cmd.exe (or cscript.exe)). Is it even possible to
read
the status of cmd.exe? Do I need to use StandardError somehow? I have
already tried WaitForInputIdle (GUI only).

Thanks in advance.


Mar 9 '07 #3
Dim consoleApp As New Process

With consoleApp

..StartInfo.UseShellExecute = False

..StartInfo.RedirectStandardOutput = True

..StartInfo.FileName = "cmd"

..StartInfo.RedirectStandardInput = True

..Start()

..WaitForExit(1)

End With

'Wait for the command window to load

Threading.Thread.Sleep(500)

Do

Me.Text = (consoleApp.MainWindowTitle.ToString)

Application.DoEvents()

Loop Until consoleApp.MainWindowTitle.ToString.Length <0

Application.DoEvents()

consoleApp.StandardInput.WriteLine("echo off")

Application.DoEvents()

consoleApp.StandardInput.WriteLine("cls")

Application.DoEvents()

consoleApp.StandardInput.WriteLine("ipconfig /DisplayDns")

Do

Application.DoEvents()

Me.Text = ("waiting for ipcfg to complete")

Loop Until consoleApp.MainWindowTitle.ToString.EndsWith("cmd. exe")

Me.Text = "ip cfg completed"

"gmyers" <gm****@discussions.microsoft.comwrote in message
news:1F**********************************@microsof t.com...
Hello Mike,

Thanks for you response. Yes, I've seen that as well (happens with any
command sent to the cmd.exe) but I am not clear on your response. Why do
I
need to read the CMD's caption? I looked up sendmessage and was unable to
determine the route that you are suggesting. I have an open connection
the
process, I just need to be able to identify when the cmd.exe has finished
processing the previous command that was sent so that I may send another
one.

Thank you
"Michael M." wrote:
>I have noticed that when applications such as cscript % are executing the
title of CMD changes to somthing like

"C:\windows\system32\cmd.exe - Cscript AD_addNew.vbs"

then... once finished it changes back to

"C:\windows\system32\cmd.exe"

If you use sendmessage(hwnd, WM_GETTEXT, param, param)

You could read the CMD's caption.

infact I seem to remember the Process class has a method that reads the
caption of the main window of an application.

Mike.
"gmyers" <gm****@discussions.microsoft.comwrote in message
news:01**********************************@microso ft.com...
Hello,

I am attempting to start a cmd.exe process and pass several .vbs
scripts
(with additional parameters) and then read the output from the scripts
and
make "notes" in a DataTable (the "notes" not being the issue).

Beginning with...

Dim objProcess As Process
Dim objProcessStartInfo As New ProcessStartInfo

objProcessStartInfo.FileName =
System.Environment.GetEnvironmentVariable("ComSpec ")
objProcessStartInfo.WorkingDirectory =
System.Environment.GetEnvironmentVariable("SystemR oot")
objProcessStartInfo.RedirectStandardOutput = True
objProcessStartInfo.RedirectStandardInput = True
objProcessStartInfo.RedirectStandardError = True
objProcessStartInfo.UseShellExecute = False
objProcessStartInfo.WindowStyle = ProcessWindowStyle.Normal
objProcess = Process.Start(objProcessStartInfo)

I then loop through a DataTable, attempting to fire off VBScripts (or
Batch/EXE)(a.k.a. strApplicationAction) using:
objProcess.StandardInput.WriteLine(strApplicationA ction)
Ex. strApplicationAction = "C:\Scratch\CopyFile.vbs MyComputer"

then attempt to read the output from the VBScript using
objProcess.StandardOutput. I have tried all of the following:

' Problem: EndOfStream is not reached when VBScript ends only when
cmd.exe
closes.
Do While (objProcess.StandardOutput.EndOfStream = False)
strOutput &= objProcess.StandardOutput.ReadLine & vbCrLf
Loop

' Problem: Hangs because it is looking for the exit of the cmd.exe
strOutput = objProcess.StandardOutput.ReadToEnd

' If condition not reached until cmd.exe is closed
Do While (objProcess.StandardOutput.EndOfStream = False)
strTemp &= objProcess.StandardOutput.ReadLine
if (strTemp = System.Environment.GetEnvironmentVariable("SystemR oot")
&
">") then exit do
Loop

Note: I can collect the StandardOutput. I am just getting tripped up
on
knowing when the cmd.exe is idle. What I am looking for is the ability
to
determine if the cmd.exe is finished processing the first
VBScript/Batch/EXE
and then fire another one using
objProcess.StandardInput.WriteLine(strApplicationA ction) without having
to
launch a new cmd.exe for each ApplicationAction (I already have that
working
~ 100 scripts = 100 cmd.exe (or cscript.exe)). Is it even possible to
read
the status of cmd.exe? Do I need to use StandardError somehow? I have
already tried WaitForInputIdle (GUI only).

Thanks in advance.



Mar 9 '07 #4
Hello Mike,

That's just plain slick. As an FYI, I also needed to capture the output and
parse it and threw in a time out in case it hangs. So I thought I would post
back what I did.

Select Case True
<Several cases to set things up>
Case else
objDateTime = DateTime.Now
objProcess.StandardInput.WriteLine(strApplicationA ction)
Do
System.Windows.Forms.Application.DoEvents()
If (DateDiff(DateInterval.Minute, objDateTime, DateTime.Now) 10) Then
Exit Select
Loop Until (objProcess.MainWindowTitle.ToString.EndsWith("cmd .exe") = True)
objProcess.StandardInput.WriteLine("Done!")
objDateTime = DateTime.Now
Do
strOutput &= objProcess.StandardOutput.ReadLine & vbCrLf
If (DateDiff(DateInterval.Second, objDateTime, DateTime.Now) 5) Then
Exit Select
Loop Until (InStr(strOutput, "Done!") 0)

Thanks again!
Gregory

"Michael M." wrote:
Dim consoleApp As New Process

With consoleApp

..StartInfo.UseShellExecute = False

..StartInfo.RedirectStandardOutput = True

..StartInfo.FileName = "cmd"

..StartInfo.RedirectStandardInput = True

..Start()

..WaitForExit(1)

End With

'Wait for the command window to load

Threading.Thread.Sleep(500)

Do

Me.Text = (consoleApp.MainWindowTitle.ToString)

Application.DoEvents()

Loop Until consoleApp.MainWindowTitle.ToString.Length <0

Application.DoEvents()

consoleApp.StandardInput.WriteLine("echo off")

Application.DoEvents()

consoleApp.StandardInput.WriteLine("cls")

Application.DoEvents()

consoleApp.StandardInput.WriteLine("ipconfig /DisplayDns")

Do

Application.DoEvents()

Me.Text = ("waiting for ipcfg to complete")

Loop Until consoleApp.MainWindowTitle.ToString.EndsWith("cmd. exe")

Me.Text = "ip cfg completed"

"gmyers" <gm****@discussions.microsoft.comwrote in message
news:1F**********************************@microsof t.com...
Hello Mike,

Thanks for you response. Yes, I've seen that as well (happens with any
command sent to the cmd.exe) but I am not clear on your response. Why do
I
need to read the CMD's caption? I looked up sendmessage and was unable to
determine the route that you are suggesting. I have an open connection
the
process, I just need to be able to identify when the cmd.exe has finished
processing the previous command that was sent so that I may send another
one.

Thank you
"Michael M." wrote:
I have noticed that when applications such as cscript % are executing the
title of CMD changes to somthing like

"C:\windows\system32\cmd.exe - Cscript AD_addNew.vbs"

then... once finished it changes back to

"C:\windows\system32\cmd.exe"

If you use sendmessage(hwnd, WM_GETTEXT, param, param)

You could read the CMD's caption.

infact I seem to remember the Process class has a method that reads the
caption of the main window of an application.

Mike.
"gmyers" <gm****@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...
Hello,

I am attempting to start a cmd.exe process and pass several .vbs
scripts
(with additional parameters) and then read the output from the scripts
and
make "notes" in a DataTable (the "notes" not being the issue).

Beginning with...

Dim objProcess As Process
Dim objProcessStartInfo As New ProcessStartInfo

objProcessStartInfo.FileName =
System.Environment.GetEnvironmentVariable("ComSpec ")
objProcessStartInfo.WorkingDirectory =
System.Environment.GetEnvironmentVariable("SystemR oot")
objProcessStartInfo.RedirectStandardOutput = True
objProcessStartInfo.RedirectStandardInput = True
objProcessStartInfo.RedirectStandardError = True
objProcessStartInfo.UseShellExecute = False
objProcessStartInfo.WindowStyle = ProcessWindowStyle.Normal
objProcess = Process.Start(objProcessStartInfo)

I then loop through a DataTable, attempting to fire off VBScripts (or
Batch/EXE)(a.k.a. strApplicationAction) using:
objProcess.StandardInput.WriteLine(strApplicationA ction)
Ex. strApplicationAction = "C:\Scratch\CopyFile.vbs MyComputer"

then attempt to read the output from the VBScript using
objProcess.StandardOutput. I have tried all of the following:

' Problem: EndOfStream is not reached when VBScript ends only when
cmd.exe
closes.
Do While (objProcess.StandardOutput.EndOfStream = False)
strOutput &= objProcess.StandardOutput.ReadLine & vbCrLf
Loop

' Problem: Hangs because it is looking for the exit of the cmd.exe
strOutput = objProcess.StandardOutput.ReadToEnd

' If condition not reached until cmd.exe is closed
Do While (objProcess.StandardOutput.EndOfStream = False)
strTemp &= objProcess.StandardOutput.ReadLine
if (strTemp = System.Environment.GetEnvironmentVariable("SystemR oot")
&
">") then exit do
Loop

Note: I can collect the StandardOutput. I am just getting tripped up
on
knowing when the cmd.exe is idle. What I am looking for is the ability
to
determine if the cmd.exe is finished processing the first
VBScript/Batch/EXE
and then fire another one using
objProcess.StandardInput.WriteLine(strApplicationA ction) without having
to
launch a new cmd.exe for each ApplicationAction (I already have that
working
~ 100 scripts = 100 cmd.exe (or cscript.exe)). Is it even possible to
read
the status of cmd.exe? Do I need to use StandardError somehow? I have
already tried WaitForInputIdle (GUI only).

Thanks in advance.


Mar 14 '07 #5
No problem.

Mike.
"gmyers" <gm****@discussions.microsoft.comwrote in message
news:D8**********************************@microsof t.com...
Hello Mike,

That's just plain slick. As an FYI, I also needed to capture the output
and
parse it and threw in a time out in case it hangs. So I thought I would
post
back what I did.

Select Case True
<Several cases to set things up>
Case else
objDateTime = DateTime.Now
objProcess.StandardInput.WriteLine(strApplicationA ction)
Do
System.Windows.Forms.Application.DoEvents()
If (DateDiff(DateInterval.Minute, objDateTime, DateTime.Now) 10) Then
Exit Select
Loop Until (objProcess.MainWindowTitle.ToString.EndsWith("cmd .exe") =
True)
objProcess.StandardInput.WriteLine("Done!")
objDateTime = DateTime.Now
Do
strOutput &= objProcess.StandardOutput.ReadLine & vbCrLf
If (DateDiff(DateInterval.Second, objDateTime, DateTime.Now) 5) Then
Exit Select
Loop Until (InStr(strOutput, "Done!") 0)

Thanks again!
Gregory

"Michael M." wrote:
>Dim consoleApp As New Process

With consoleApp

..StartInfo.UseShellExecute = False

..StartInfo.RedirectStandardOutput = True

..StartInfo.FileName = "cmd"

..StartInfo.RedirectStandardInput = True

..Start()

..WaitForExit(1)

End With

'Wait for the command window to load

Threading.Thread.Sleep(500)

Do

Me.Text = (consoleApp.MainWindowTitle.ToString)

Application.DoEvents()

Loop Until consoleApp.MainWindowTitle.ToString.Length <0

Application.DoEvents()

consoleApp.StandardInput.WriteLine("echo off")

Application.DoEvents()

consoleApp.StandardInput.WriteLine("cls")

Application.DoEvents()

consoleApp.StandardInput.WriteLine("ipconfig /DisplayDns")

Do

Application.DoEvents()

Me.Text = ("waiting for ipcfg to complete")

Loop Until consoleApp.MainWindowTitle.ToString.EndsWith("cmd. exe")

Me.Text = "ip cfg completed"

"gmyers" <gm****@discussions.microsoft.comwrote in message
news:1F**********************************@microso ft.com...
Hello Mike,

Thanks for you response. Yes, I've seen that as well (happens with any
command sent to the cmd.exe) but I am not clear on your response. Why
do
I
need to read the CMD's caption? I looked up sendmessage and was unable
to
determine the route that you are suggesting. I have an open connection
the
process, I just need to be able to identify when the cmd.exe has
finished
processing the previous command that was sent so that I may send
another
one.

Thank you
"Michael M." wrote:

I have noticed that when applications such as cscript % are executing
the
title of CMD changes to somthing like

"C:\windows\system32\cmd.exe - Cscript AD_addNew.vbs"

then... once finished it changes back to

"C:\windows\system32\cmd.exe"

If you use sendmessage(hwnd, WM_GETTEXT, param, param)

You could read the CMD's caption.

infact I seem to remember the Process class has a method that reads
the
caption of the main window of an application.

Mike.
"gmyers" <gm****@discussions.microsoft.comwrote in message
news:01**********************************@microso ft.com...
Hello,

I am attempting to start a cmd.exe process and pass several .vbs
scripts
(with additional parameters) and then read the output from the
scripts
and
make "notes" in a DataTable (the "notes" not being the issue).

Beginning with...

Dim objProcess As Process
Dim objProcessStartInfo As New ProcessStartInfo

objProcessStartInfo.FileName =
System.Environment.GetEnvironmentVariable("ComSpec ")
objProcessStartInfo.WorkingDirectory =
System.Environment.GetEnvironmentVariable("SystemR oot")
objProcessStartInfo.RedirectStandardOutput = True
objProcessStartInfo.RedirectStandardInput = True
objProcessStartInfo.RedirectStandardError = True
objProcessStartInfo.UseShellExecute = False
objProcessStartInfo.WindowStyle = ProcessWindowStyle.Normal
objProcess = Process.Start(objProcessStartInfo)

I then loop through a DataTable, attempting to fire off VBScripts
(or
Batch/EXE)(a.k.a. strApplicationAction) using:
objProcess.StandardInput.WriteLine(strApplicationA ction)
Ex. strApplicationAction = "C:\Scratch\CopyFile.vbs MyComputer"

then attempt to read the output from the VBScript using
objProcess.StandardOutput. I have tried all of the following:

' Problem: EndOfStream is not reached when VBScript ends only when
cmd.exe
closes.
Do While (objProcess.StandardOutput.EndOfStream = False)
strOutput &= objProcess.StandardOutput.ReadLine & vbCrLf
Loop

' Problem: Hangs because it is looking for the exit of the cmd.exe
strOutput = objProcess.StandardOutput.ReadToEnd

' If condition not reached until cmd.exe is closed
Do While (objProcess.StandardOutput.EndOfStream = False)
strTemp &= objProcess.StandardOutput.ReadLine
if (strTemp =
System.Environment.GetEnvironmentVariable("SystemR oot")
&
">") then exit do
Loop

Note: I can collect the StandardOutput. I am just getting tripped
up
on
knowing when the cmd.exe is idle. What I am looking for is the
ability
to
determine if the cmd.exe is finished processing the first
VBScript/Batch/EXE
and then fire another one using
objProcess.StandardInput.WriteLine(strApplicationA ction) without
having
to
launch a new cmd.exe for each ApplicationAction (I already have that
working
~ 100 scripts = 100 cmd.exe (or cscript.exe)). Is it even possible
to
read
the status of cmd.exe? Do I need to use StandardError somehow? I
have
already tried WaitForInputIdle (GUI only).

Thanks in advance.



Mar 16 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Microsoft News | last post by:
Hi all. Does id() xpath function work in System.XML? I have built dtd, schema, xdr for a simple xml which includes attributes definded as ID and IDREFS. Validation is occurring properly for all...
1
by: Heiko Besemann | last post by:
Dear group, I created an aspx page using System.Diagnostics.Process() to launch "tracert" from shell and redirect output to Response.Output which prints it as text/plain into my browsers window....
5
by: folke | last post by:
I'm using the Process class in my app to start another app, appXXX, I wrote. Appxxx is located at c:\folke\appxxx.exe This is wroking fine from a Windows Application, but NOT from an ASP.NET...
11
by: Nurit N | last post by:
This is the third newsgroup that I'm posting my problem. I'm sorry for the multiple posts but the matter becoming urgent. I hope this is the right place for it... I have created a very...
0
by: Daniel | last post by:
System.Diagnostics.Process.Start fails on windows server 2003 the process returns process.ExitCode == 0 but executing any process with System.Diagnostics.Process.Start on windows xp works fine....
1
by: Matthew Lock | last post by:
Hello, I get some strange behaviour after calling a method on a third party library when I call: System.Diagnostics.Process.GetCurrentProcess().StartTime If I run the following code it works as...
0
by: =?Utf-8?B?UHVjY2E=?= | last post by:
-- Hi I'm using vs2005, .net 2 for windows application. The application I started using System.Diagnostics.Process is having a "listFiles.StandardOutput" buffer size problem. I was wondering...
1
by: lapucca | last post by:
Hi, I'm using VS 2005, ,.net 2 for C# windows application. I'm using Process to run a C application and redirecting its standard output so I can read it with StreamReader.ReadToEnd. It's only...
2
by: test3 | last post by:
Hello folks, I'm using System.Diagnostics.Process to start a thirdparty program (that works perfectly when started via command line). I'm using Process.StandardOutput to get the output of the...
3
KodeKrazy
by: KodeKrazy | last post by:
I can use System.Diagnostics.Process.Start to launch .txt, .bmp, .jpg, etc., but if I try to launch an .exe, from the same folder, I get the "The system cannot find the file specified." error. For...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.