开发者

Programatic launching of application on windows startup

开发者 https://www.devze.com 2023-01-10 15:21 出处:网络
I have a particular piece of software that i wish to load on windows startup. Under normal circumstances i would simply place a shortcut in the startup folder or开发者_如何学运维 an entry in the run k

I have a particular piece of software that i wish to load on windows startup. Under normal circumstances i would simply place a shortcut in the startup folder or开发者_如何学运维 an entry in the run key in the registry.

Unfortunately and for an unknown reason this application throws a win32 execption whenever that is done - and i am assuming it is because an element of windows has not been loaded that is vital to this application.

Once windows has actually loaded i can double click on the icon and it runs fine. So my question is - is there a programmatic solution to this? I have already tried a console app launcher that sleeps for n seconds and then launches but all that seems to do is delay the startup of windows.

Does anyone have any creative solutions? I am open to anything from a windows service to c#, vb, batch files.. etc

Thx


Can you run it as a service, or write a shell service which will attempt to start it up? That way you will have built in support for response on failure and delay time before trying again.


Have a look at AUTOEXEC.BAT. But be careful!!

0

精彩评论

暂无评论...
验证码 换一张
取 消