Thursday, November 11, 2010

Is it possible to make a VB program run even when logged off?

If it is possible, i need to know! it is for a school project. If you know, please tell me how. Thanks!Is it possible to make a VB program run even when logged off?
There is no way you can do that.



But there is another way, and it's letting your software add start-up keys into the registry of the windows so whenever the user logs in, it starts up. That can also be considered illegal if you used it in the wrong ways, but as long as the owner of the PC knows about it, I think it's fine.Is it possible to make a VB program run even when logged off?
There are two things that can be done. First, you can use the Scheduled Tasks feature. In XP, go to Start / Accessories / System Tools / Scheduled Tasks. You can set it to run there at a specific time.



If you want the program to run all the time, then you have to set it up as a system service. It will then run when the machine is booted. It takes special programming in order to make a program run as a service, and debugging it is difficult, so the first option is a better choice.



Remember that if you want a program to run when nobody is logged on, you should not have a user interface. There will be no one to interact with it, so it has to be set up as a command line application, and should leave logs or events in the event log to track its activities.

No comments:

Post a Comment