Link to home
Start Free TrialLog in
Avatar of psmithphil
psmithphilFlag for United States of America

asked on

Starting programs, batch files on computer from a different computer

I have a batch file and a Visual Basic program that, using the Windows Task Scheduler, run around 3am each weekend on a computer in a secured room at work.  If either of these programs fail, for whatever reason, both of them have to be restarted; first the batch file, and when it's finished, then the Visual Basic program. These programs must run on the computer, not anywhere else.  Due to corporate red-tape, I cannot remote in from home to this computer to restart these programs.  However, I can remote onto a server using Terminal Services Client, and the computer and server are linked through the network.  

How can I restart these two programs so that they run on the computer?  Thank you for your help!
SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of psmithphil

ASKER

Well, both ways work to get the batch file going.  For some reason the Visual Basic program, when started via telnet, runs for a little over a minute and then stops.   If I run the program from the Task Scheduler, it runs completely.  I haven't figured out what's going on.  

I'll continue testing and let you know asap.  Again, thank you!
For some reason when using either method, the Visual Basic program runs for a little over a minute and then stops.   I even made an AT command through telnet and it still stops.  But when I run it through the Task scheduler it runs okay.  I then changed the rights for the AT command from "system" to my badge.  It then ran, but this program among other things makes zipped exe files, and these are created in the Windows\system32 directory instead of the directory the program runs from.  Therefore, they don't get copied.  I suppose I could make a conditional statement in the program, but I'd like to avoid that.  I also don't know if I'm going to have problems from changing the AT rights in the Task Scheduler.

Both of you have given me great ideas though, and I have learned some things from this experience.  I am going to award you both the points and make a new question later that addresses just this one remaining problem.  Thank you both for your outstanding help!!
Just a note to let you know I entered another 500 point question for the remote start problem I'm having.  It's in the Windows 2000 area entitled "Problem starting VB program with telnet & psexec"  Thank you for looking at it!