473,508 Members | 2,454 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I want to see the text in the command\dos window

My Code
GPGProcess.StartInfo.FileName = "cmd"
GPGProcess.StartInfo.CreateNoWindow = False
GPGProcess.StartInfo.UseShellExecute = False
GPGProcess.StartInfo.RedirectStandardInput = True
GPGProcess.StartInfo.RedirectStandardOutput = True
GPGProcess.StartInfo.RedirectStandardError = True
GPGProcess.Start()
GPGProcess.StandardInput.WriteLine("dir")
GPGProcess.StandardInput.Flush()
GPGProcess.StandardInput.Close()

Now when I debug step by step all I see is the cursor in the cmd window
and no text. I want to debug each step. How come I don't see the
command prompt and then I don't see the text "dir" being sent to the
window.

Thanks,
Phil Putzback

Nov 21 '05 #1
2 970
"PAPutzback" <ph**************@insightbb.com> schrieb:
GPGProcess.StartInfo.FileName = "cmd"
GPGProcess.StartInfo.CreateNoWindow = False
GPGProcess.StartInfo.UseShellExecute = False
GPGProcess.StartInfo.RedirectStandardInput = True
GPGProcess.StartInfo.RedirectStandardOutput = True
GPGProcess.StartInfo.RedirectStandardError = True
GPGProcess.Start()
GPGProcess.StandardInput.WriteLine("dir")
GPGProcess.StandardInput.Flush()
GPGProcess.StandardInput.Close()

Now when I debug step by step all I see is the cursor in the cmd window
and no text. I want to debug each step. How come I don't see the
command prompt and then I don't see the text "dir" being sent to the
window.


RedirectConsole
<URL:http://dotnet.mvps.org/dotnet/samples/misc/RedirectConsole.zip>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
I wish you could see what I see. I changed the code to this
'.FileName = "cmd"
..FileName = "c:\working\gpg\gpg.exe"
..Arguments = "--yes --output c:\working\inbound\test.txt
--decrypt c:\working\inbound\anstest.gpg"
And I don't see a thing in the window

But if I change this
..CreateNoWindow = False

There is plenty of text in the dos window that shows up.

My guess is because the app never shows the output because the process
has a prompt.

So I tried this to fill in the prompt with this
GPGProcess.StandardInput.Write("my password")
GPGProcess.StandardInput.Flush()
GPGProcess.StandardInput.Close()

but it doesn't appear to ever send the password to the process.
This has plagued me for a few days now.

Thanks,
Phil Putzback

Nov 21 '05 #3

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

Similar topics

2
7613
by: monika | last post by:
Hi all... I am able to select a student's story and open it in a word doc. the teacher then corrects the story, highlight in colors the comments, strikethrough. In fact all the privileges I...
5
1858
by: Brent Webster | last post by:
I have an asp page that is attached to database and I want to update the database when the window is closed. It is basically 5 text boxes wide by 8 text boxes high and these are all dynamically...
2
2562
by: Kelvin | last post by:
Hi, there: I have seen some program which extracts text from the computer screen. For example, my English-Chinese dictionary, which extracts a English word from the buttons and menus on other...
1
1596
by: s.shahzaib.ali | last post by:
I want to make analog clock skin of windows media player so how can i roteate the layer upto 360 degrees with the help of javascript please tell me iam very anxious about it. iam the first and only...
10
47476
by: korund | last post by:
We can use special characters ('\n') to add line breaks in text in JavaScript popup Alert boxes. there is also few additional special characters: \' single quote \" double quote \&...
4
2106
by: lisabelle | last post by:
Really, all I've ever done is a little html, but since FrontPage, hardly any. Now I am ready to sell my products after being online for a decade. I am newly signed up with Link Partners, and I get an...
0
1246
by: manmit.walia | last post by:
Hello All, Basically What I did is create a gridview with 7 columns. One of the columns is the LinkButton that binds it's text value to a column in my dataset. The rest of the columns are pretty...
4
1442
by: hanseymoon | last post by:
Dear newsgroup: I've got this long function, which works good overall to spell check words from a dictionary and I am not in a position to replace it. Can someone please see where or how it...
4
7716
iam_clint
by: iam_clint | last post by:
Heres some sample code I wrote up for you guys to use on making text effects <script> //TEXT EFFECTS CODE WRITTEN BY iam_clint! window.onload = doEffects; var speed = 15; //lower the number...
0
7333
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
7398
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...
1
7061
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
7502
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
5637
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
4716
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...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
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.