can anyone point out what is wrong with the following usage of spawn ?
if (_spawnl(_P_WAIT, "c:\\windows\\command\\xcopy.exe",
"c:\\_dev\\newstock\\in\\*.dat", "c:\\_dev\newstock\\out\\", NULL) == 0)
DebugOut("spawn success\n");
Thanks in advance.
Francis.
Do the directories indicated actually exist?
Are there in fact any .dat files in the "in" dir?
Have you considered using CreateProcess instead
of spawn?
--
Dan Evens
(Standard disclaimers etc. No spam please.)
dan....@hydro.on.ca
Francis Hoang <ac...@presto.net.au> wrote in article
<369C7081...@presto.net.au>...