You should use either cscript.exe or wscript.exe to run a script file.
Also, instead of the string you're passing, you'll need to pass a real
path (i.e., "c:\\myfile.vbs")
--
--------- Scott Seligman <scott at <firstname> and michelle dot net> ---------
Music hath charms to soothe the savage breast, to soften rocks, or
bend a knotted oak.
-- The Mourning Bride by William Congreve
I've tried what you suggested and it still doesn't work. I changed it to
the below line:
CreateProcess(_T("cscript //NOLOGO c:/myfile.vbs"), NULL, NULL, NULL, FALSE,
0, NULL, NULL, &si, &pi);
"Scott Seligman" <seli...@example.com> wrote in message
news:gmko7n$5o9$1...@panix3.panix.com...
"James" <synta...@yahoo.co.uk> wrote in message news:Obz%23$sViJH...@TK2MSFTNGP05.phx.gbl...