For word application, we have Word.Application
as program identifier. What is the program iden开发者_如何学运维tifier for Notepad and Calculator?
Word.Application
is the name of the a COM object which forms part of the Word API.
Notepad is a simple application which does not have a COM API. If you just wish to start an instance of notepad, then locate the notepad.exe
file in %WINDIR%
or %WINDIR%\System32
(for W2k8), and start it as a new process from your application.
The same applies for calc.exe
.
精彩评论