Solved

how to auto run program when login to windows?

Posted on 2011-03-14
7
317 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

20 Experts available now in Live!

Get 1:1 Help Now