Solved

how to auto run program when login to windows?

Posted on 2011-03-14
7
322 Views
Last Modified: 2012-05-11
hi guys,

i need solution for run program when login user to windows.

i dont need startup folder and registry file.

need to use windows service or another solution

tnx
0
Comment
Question by:l0o3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 3

Expert Comment

by:LFLFM
ID: 35130847
edit (or create) autoexec.bat in c:\

http://www.google.com.br/search?q=autoexec.bat&num=100


Another way is to design the program as a windows service (windows services aren't normal programs) and add it to the service list using the appropriate CMD commands:

http://www.google.com.br/search?num=100&hl=pt-BR&q=programming+a+windows+service&aq=f&aqi=&aql=&oq=

http://www.google.com.br/search?num=100&hl=pt-BR&q=installing+a+program+as+windows+service&aq=f&aqi=&aql=&oq=


Or use a wrapper program such as srvany... <--- this is probably what you really want.

http://smallvoid.com/article/winnt-services-srvany.html
0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 35131111
Why not just use the plain old Windows Task Scheduler?
http://msdn.microsoft.com/en-us/library/aa383614(VS.85).aspx

What version Windows are you running?  I have successfully used the Task Scheduler on my Win 7 machine to run an app after I login.
0
 

Author Comment

by:l0o3
ID: 35131127
i need code in vb.net
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 35131160
Are you trying to get a VB.Net executable to run at login?

Or are you trying to programmatically from VB.Net, schedule a program?
0
 

Author Comment

by:l0o3
ID: 35131181
trying to programmatically
0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 35131211
0
 

Author Closing Comment

by:l0o3
ID: 35131544
tnx
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question