Capture output of Windows program

Windows specific forum
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Capture output of Windows program

Post 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?
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Post 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.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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.
BERESHEIT
User avatar
Michael Vogel
Addict
Addict
Posts: 2821
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

What about trying to capture the graphic an scan within the image?
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post 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.
--Kale

Image
Post Reply