Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

Executing a DOS program

I want to execute a dos program in the background and get the output it send (not wait for it to finish).
I don't wanna sit down and use CreateProc either.. Anyone know an easier way in Delphi 3.0?
0
mortenmo
Asked:
mortenmo
1 Solution
 
GreedyCommented:
use this

ShellExecute( 0, 'open'+#0, Pchar('YOURFILE'), nil, nil, SW_NORMAL );

oh you want the output too...hummm...that requires some more jooking...I'll see what I can do...

0
 
sattoCommented:
use ExecuteProg(Commandline : string)

Satto
0
 
mortenmoAuthor Commented:
Well I want the output from it too.. and not open a console window ;)
0
 
itamarCommented:
Hi mortenmo,

I have some ideas. If you re-open the question, I could try.

Bye,
Itamar
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now