> > maybe you could get the directory from the registry > > > > HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\command > > gives : "C:\python27\python.exe" "%1" %* ...
> Yes, but from now it's a .bat script, so it should be very easy to get and > parse :p so how about something like this: FOR /F "tokens=3 delims= " %%A IN ('reg query "HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\command"') DO SET PYTHON=%%A echo %PYTHON% schould give "c:'\python27\python.exe" in %PYTHON% Michael ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Shinken-devel mailing list Shinken-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shinken-devel