Page 1 of 1

Capture output of Windows program

Posted: Thu Mar 05, 2009 11:32 pm
by TerryHough
I'm trying to capture the output from the Windows CIPHER program with the parameter /W using RunProgram().

This option clears the free space.

Example:

CIPHER /W:C:\

I can get the string lines, but I haven't been able to grab the . (periods) that show the program's progress.

Anybody have a clue for me?

Posted: Sat Mar 07, 2009 8:51 pm
by TerryHough
Here is how it looks. The dots are added as progress is made. I haven't been able to capture them.

CIPHER /W:C:\
To remove as much data as possible, please close all other applications while
running CIPHER /W.
Writing 0x00
............................................................................
Try this by using Start|Run and entering CIPER /W: followed by the pathname you want to clear the free space in. For testing, I use a small thumb drive. The complete process takes some time if you do the whole drive, and even small drives take about 10 minutes.

Posted: Fri Mar 13, 2009 2:17 am
by netmaestro
I did have a look at this, but so far no luck. The dots are not triggering AvailableProgramOutput() and when I rewrote the whole thing in API using PeekNamedPipe_() in place of AvailableProgramOutput() I still found nothing to peek at. It's simmering in the back of my mind though and if a light comes on I'll post.

Posted: Fri Mar 13, 2009 8:28 am
by Michael Vogel
What about trying to capture the graphic an scan within the image?

Posted: Fri Mar 13, 2009 9:43 am
by Kale
AvailableProgramOutput() doesn't rely on line endings does it? If so it's maybe not picking up the output (periods) because of lack of line endings.