Solved

how to auto run program when login to windows?

Posted on 2011-03-14
7
318 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
  • 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 85

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 85

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 85

Accepted Solution

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

Author Closing Comment

by:l0o3
ID: 35131544
tnx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now