Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem using _spawnl()

0 views
Skip to first unread message

Francis Hoang

unread,
Jan 13, 1999, 3:00:00 AM1/13/99
to
Hello all,

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.

Dan Evens

unread,
Jan 13, 1999, 3:00:00 AM1/13/99
to
Is that where xcopy.exe resides on your system? On
my NT box it sits in C:\WINNT\system32

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

0 new messages