How do you launch an EXE (anytime, not at the startup)?

M

Michael Jones

I have tried everything, and can't figure it out. I just want to be
able to shell an app from a VB program. I have my VB program running
fine, and it does everything just fine, EXCEPT running programs. I
mean launching them, that's all.

I already know how to run them at startup using the "Run Once" feature
and also running them everytime XPE starts with the registry setting.
That is not what I want.

I want to be at a different location and tell the XPE appliance to
shell notepad.exe if I want to. Or tell it to run an update (a
setup.msi) to a program, after I have delivered it to the XPE
appliance, via FTP.

Note that I have included the WMI component, and all the files are
there to run the various EXE's. Heck, I can't even get XPE to launch
Notepad.exe.

I have an application that is a service (written in VB) that waits for
a file to appear in a folder, which it reads, that tells it which EXE
to launch. I have tried both WinExec() and Shell(), and neither
works.

Can anybody help me?

Thanks,
Michael
 
S

Slobodan Brcin

I have an application that is a service (written in VB) that waits for
a file to appear in a folder, which it reads, that tells it which EXE
to launch. I have tried both WinExec() and Shell(), and neither
works.

Can anybody help me?

Is this a minlogon based build?

Try using CreateProcess it is low level API and will always work.


Best regards,
Slobodan
 
M

Michael Jones

Slobodan Brcin said:
Is this a minlogon based build?
------------------------------------
It used to be. Now, it is a Windows Logon build. I really wanted to
use the MinLogon, and originally had that type, but I couldn't reboot
or launch EXE's, so I switched to Windows Logon to try to fix it. I
would rather go back to MinLogon, if I could.
-------------------------------------
 

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