On Tue, 03 Mar 2009 15:22:20 -0000, <[email protected]> wrote:
It's not firing off the vbs script. Have I got the syntax correct?
Thanks.
My latest attempt:
vBS = "C:\\Program Files\\nasa\\nmail.vbs"
os.system('cscript /from:[email protected] /
to:[email protected] /sub:TEST /msg:hello ' + vBS)
Your problem is that vBS has a space in it, so the Windows
command interpreter is interpreting it as two separate arguments,
r"C:\Program" and r"Files\nasa\nmail.vbs".
Gabriel has already posted two solutions (which I won't repeat),
but he forgot to mention the problem itself!
--
Rhodri James *-* Wildebeeste Herder to the Masses
--
http://mail.python.org/mailman/listinfo/python-list