Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to auto run program when login to windows?

Posted on 2011-03-14
7
Medium Priority
?
324 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
Independent Software Vendors: 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 2000 total points
ID: 35131211
0
 

Author Closing Comment

by:l0o3
ID: 35131544
tnx
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

670 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