Click to See Complete Forum and Search --> : calling applications


rocky
May 23rd, 1999, 04:49 AM
my project has to call some apps like regedit, scandisk, defrag,...
calling regedit works fine:
_spawnl(_P_NOWAIT, "c:\\windows\\regedit.exe", NULL);

...but when I try the same code with "defrag.exe"
or "scandisk.exe" it doesn't work...

why?
is there another way to call apps?

please help me.
thanks in advance.

BarD
May 23rd, 1999, 10:22 AM
Hi!
Try function ShellExecute(). See MSDN for details.

Dmitry Barashev.

Josh Handley
May 26th, 1999, 09:39 AM
You could also try the CreateProcess function.