Home > Archive > Delphi > March 2004 > It's silly question time
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
It's silly question time
|
|
| Simon Hart 2004-03-27, 12:21 am |
| Hi folks.
I've hunted high and low but still an't find how to do this. I want to run a
programme from inside Delphi. In C it would be something like...
execl("c:\foo\bar.exe");
Blowed if I can find it!
The other thing I want to find out is what parameters the windows "Format"
command takes. What I'm after doing is formatting a disk programatically and
then making it bootable, as in the old DOS "Format c: /s".
Anyone know how to do the execl() and where to find the command line params
for format, et al?
Ta muchly!
--
Simon Hart
In space, nobody can hear you scream.
| |
| KLinZ 2004-03-27, 12:21 am |
| Simon Hart wrote:
> I've hunted high and low but still an't find how to do this. I want
> to run a programme from inside Delphi. In C it would be something
> like...
>
> execl("c:\foo\bar.exe");
Use either CreateProcess or ShellExecute. There also is the more simple
function WinExec, but it is deprecated.
> The other thing I want to find out is what parameters the windows
> "Format" command takes. What I'm after doing is formatting a disk
> programatically and then making it bootable, as in the old DOS
> "Format c: /s".
Hmm, well. Try SHFormatDrive:
http://msdn.microsoft.com/library/e...l/reference/fun
ctions/shformatdrive.asp
--
www.zenobits.com
|
|
|
|
|