Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file to log on.

Status
Not open for further replies.

Napoleon99

Programmer
Sep 20, 2002
11
US
Hi

I need to run a VB program on a remote server that I connect to thru terminal services. The program has to run on the machine all day. In order to keep it running I
have to be logged on to the server thru the terminal services all the time, which is not acceptable. As soon as I log off the server the program stops running. I tried to schedule the task and then log off, that didn't help. I came to the conclusion that a remote server has to be logged on by a user. Then I thought maybe a batch file can be run from the task scheduler which can log on the server and then another task can run my program. The problem is I don't know how to make that batch file. Does anybody know how to do it? Do you have any other suggestions how to solve the problem?

Your assistance is greatly appreciated.

 
You may want to consider the idea of running the program as a service.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top