Open .exe file

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
 
D

Douglas J. Steele

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.
 
K

Katrina

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top