Open .exe file

  • Thread starter Thread starter Katrina
  • Start date Start date
K

Katrina

I'm trying to write a piece of code that will open a
specific .exe file. The file is not a Microsoft file
that I can open through CreateObject("excel.application")

Does anyone know how I can open the program through code?

Katrina
 
What do you mean by "open" the .exe file? Do you simply want to run the
program (in which case you can use Shell), or do you want do use it through
Automation (which is what your CreateObject example would imply)?

Not all programs can be used through Automation. Depending on what the
program you're trying to use is, you may not have that option.
 
I'm not sure how to answer your question, beause I'm not
really sure what the differences between using shell and
create object are.

Basically, I want to open the program (as if I had double-
clicked the object) and use the send keys to control it...

I know this is a backward way of going about things, but
I'm pretty sure the program doesn't use automation.

Does this help?

Thanks,
Katrina
 
Back
Top