RE: Win32_Process.Create -- not starting process
| I am skipping using the batch file and only executing the python
| script directly...and so far it works fine.
| So now I have:
| pid, retVal =
| wmi.WMI("22.214.171.124").new("Win32_Process").Create(Com mandLine="c:
| Thanks again...not sure why when using the batch file to start it
| wouldnt always work, but as long is it works now!
Thanks for letting me know. Hope it continues to work
BTW, I would recommend you either to use a raw string
for that command line (r"c:\python\python.exe c:\xx.py") or
to double up your slashes ("c:\\python\\python.exe c:\\xx.py")..
As it happens \p has no special meaning that I'm
aware of, but better safe than sorry...
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
Re: Win32_Process.Create -- not starting process
Tim Golden wrote:
> BTW, I would recommend you either to use a raw string
> for that command line (r"c:\python\python.exe c:\xx.py") or
> to double up your slashes ("c:\\python\\python.exe c:\\xx.py").
> As it happens \p has no special meaning that I'm
> aware of, but better safe than sorry...
.....i used double slashes, i guess i didn't type it correctly here.
Thanks for the reminder though.
|All times are GMT. The time now is 10:41 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.