Where is Word?

Guy Lateur guy.lateur at b-b.be
Tue Jun 14 05:43:54 EDT 2005


Hi all,

I need a way to get the path where MS Word/Office has been installed. I need 
to start Word from a script (see earlier post), but it doesn't work if I 
don't know its path. So "os.system("winword.exe %s" % fileName)" doesn't 
always work; I need to say "os.system("C:\Program Files\Microsoft 
Office\Office10\winword.exe %s" % fileName)".

Any ideas?

TIA,
g 





More information about the Python-list mailing list