473,473 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

StandardInput.Write

I'm trying to send a string to a 3rd party application without using the
sendmessage api
below is what I am trying but it kicks out saying that StandardInput is
redirected. I know that it is getting the proper process from GetProcessById
but I just can't write to the stream any help would be appreciated.

Dim kcProcess As Process
Dim kcProcessID As Integer =
CInt(Me.ListView1.SelectedItems(0).Text)
'MsgBox(kcProcessID.ToString)
kcProcess = Process.GetProcessById(kcProcessID)
kcProcess.StartInfo.RedirectStandardInput = True
kcProcess.StandardInput.Write(" ")
Nov 21 '05 #1
1 1913
Thread Keep Alive

Christopher. A. Kelly wrote:
I'm trying to send a string to a 3rd party application without using the
sendmessage api
below is what I am trying but it kicks out saying that StandardInput is
redirected. I know that it is getting the proper process from GetProcessById
but I just can't write to the stream any help would be appreciated.

Dim kcProcess As Process
Dim kcProcessID As Integer =
CInt(Me.ListView1.SelectedItems(0).Text)
'MsgBox(kcProcessID.ToString)
kcProcess = Process.GetProcessById(kcProcessID)
kcProcess.StartInfo.RedirectStandardInput = True
kcProcess.StandardInput.Write(" ")

Nov 21 '05 #2

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

Similar topics

1
by: Fred Mellender | last post by:
I looked at http://www.codeproject.com/csharp/LaunchProcess.asp?target=process and tried to follow the code there. My code is: public class Test { public ProcessStartInfo StartInfo; public...
2
by: O_Spring | last post by:
I am writing a program in c#. I would like to read a binary file to the standard input of a process (it is flac.exe to encode/decode some files). I have tried to use the following code : ...
2
by: Ivan Lam | last post by:
Hi all, Thanks for reading my post!!! I am facing a problem that I cannot redirect StandartOutput and StandardInput at the same time without closing the executive. Actually, I have a...
1
by: Panagiotis | last post by:
Hi everyone, this is what I want to do in C#: 1) start a Cygwin Bash Shell 2) send the Shell a command, for example "ls -l" 3) capture all the output of the command The code below seems to...
4
by: [ripper] | last post by:
Hello, I'm building a software to interface with an .exe that will parse a text file (a lex program build in cygwin that works great when it's executed on it's own). The OutputXML is more than...
0
by: SMichal | last post by:
Hi, I've got this exception in my code. I'm starting new process with Redirection of standart input. As you cann see, I'm using log4net for logging the input stream... What does this Exception...
2
by: nautonnier | last post by:
Hello, I have a C# app that spawns several processes each containing a console app written by another developer in C++. The console app was written first to be just like a console app: it...
1
by: Dv | last post by:
When our application is launched from Dos console, we need to print some message to the console. I attached our application to the console using AttachConsole(ATTACH_PARENT_PROCESS), and then call...
1
by: =?Utf-8?B?U3VydHVyWg==?= | last post by:
The following code used to work. It starts up notepad and types a few lines. What am I doing wrong? I'm using VB.NET 2005 under Vista. It starts notepad okay, but it can't 'type' into it. ...
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,...
1
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.