Solved

how to auto run program when login to windows?

Posted on 2011-03-14
7
319 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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