Running Win32 Console Application on startup as Custom Shell

S

stuie_norris

Hi Forum,

I would like to create a custom shell that will run an application
when my system boots.

The application is a win32 console application, that simply does some
configuration of the system and writes to console using stdout and
stderr. All tasks are executed from within this application using
create process system calls.

I have attempted to follow the instructions at
http://msdn.microsoft.com/en-us/library/ms838335(WinEmbedded.5).aspx.
Using %SystemRoot%\System32\myapp.exe as the executable location of my
application.

This is where I become confused. My application is designed to run
inside cmd.exe console, not a GUI. So how do I make the custom shell
run my application in side a command prompt? I would like to get this
to work.

As a side comment.
I attempted to use Minlogon to do this but I could not get the cmd
prompt lauched by minlogon to execute my application. Best I could
get was a second console when I use cmd /s myapp.exe as a Run command.

As a fallback Is if possible to get Minlogon to do what I want? Or do
I need to make a custom shell?

Thanks

Stuart
 
D

DPM

I suggest a custom shell component. I do this, with the actual shell
component a VBS script so I can perform some first-time-only operations.
Then I just use a wsh.run "c:\myfolder\myapp.exe" to invoke my application.
I also use minlogon.
 

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