473,396 Members | 1,767 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,396 software developers and data experts.

Access of Shared member...

I create a process p like this:

dim p as new System.Diagnostics.Process()

the reason I am doing this, is to be able to read the Output and Error
streams like this:

p.StandardOutput.ReadToEnd()

now, I .net 2.0, I get a warning when I try to go...
p.Start(FileName)

Access of shared member.... qualifying expression will not be
evaluated.

OK, now, start is a shared member, so, I need to access it using
System.Diagnostics.Process.Start(FileName)

but, how do I get the StandardOutput for this process? especially when
different process will be running at the same time?

thanks for everybody's help. T
Nov 17 '07 #1
1 1489
"mr t" <ta*****@gmail.comschrieb
I create a process p like this:

dim p as new System.Diagnostics.Process()

the reason I am doing this, is to be able to read the Output and
Error streams like this:

p.StandardOutput.ReadToEnd()

now, I .net 2.0, I get a warning when I try to go...
p.Start(FileName)
p.StartInfo.FileName = Filename
p.Start()

Access of shared member.... qualifying expression will not be
evaluated.

OK, now, start is a shared member,
Not the overloaded version without an argument.
so, I need to access it using
System.Diagnostics.Process.Start(FileName)

but, how do I get the StandardOutput for this process?
p = System.Diagnostics.Process.Start(FileName)
p.StandardOutput.....

especially
when different process will be running at the same time?


Armin
Nov 17 '07 #2

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

Similar topics

6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
9
by: Clint | last post by:
Hey all - Excuse the cross-post ... I'm not sure what the appropriate newsgroup would be for this question. I have a question that I'm not quite sure how to ask. For all I know, I have the...
2
by: tshad | last post by:
I have a program I am trying to compile into a dll and am getting a bunch of: the following errors: error BC30469: Reference to a non-shared member requires an object reference. At first, I...
3
by: Nick | last post by:
I've created a user control that extracts data from a database. The VB code is all contained in a code-behind file. I'm trying to extract a value from the request.querystring but keep getting...
11
by: Mr Newbie | last post by:
I'm still thinking around this subject, and I find myself unsure about a couple of things. When a new users launches an ASP.NET application, this must be on a new thread. When it encounters a...
5
by: AnDrE | last post by:
Hello I'm developing a application in VB .NET 2005 and I need to access text files. I'm using the System.IO.File library and I have this code: Dim oFile As System.IO.File Dim oRead As...
0
by: gadya | last post by:
"Cursor.Current = Cursors.Default" generates: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. --- Posted via...
6
by: wingphil | last post by:
Hi there, I have a shared method in a base class, and I need to know which subclass it has been called from. So for example Public Mustinherit Class BaseClass Public Shared Sub SharedMethod...
1
by: Rick | last post by:
I'm in the process of migrating from VS 2003 to VS 2005. One of the compile warnings I am seeing is: "Access of shared member, constant member, enum member or nested type through an instance;...
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.