Auto-restart timer

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
ZerK
New to forums
New to forums
Posts: 5
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sat Feb 22, 2014 8:48 pm

Auto-restart timer

Post by ZerK »

How would I set up a task to restart my machine and run 2 batch files that are on my desktop for my Garry's Mod servers? I tried setting up a task and every time the machine starts, it would begin the 1 minute timer to restart and it would spam-open the .bats. Can someone post a step-by-step guide on how to do it? I want it to restart at 4 AM and start the batches around 4:05 AM
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Auto-restart timer

Post by kraze »

Scheduled task should work fine for what you are doing. Can you go over your exact settings for the scheduled task to be sure you didn't make a mistake along the line?
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
ZerK
New to forums
New to forums
Posts: 5
Joined: Sat Feb 22, 2014 8:48 pm

Re: Auto-restart timer

Post by ZerK »

I got it to work, but it doesn't show me the .bats or .exes when I connect to the machine. It just runs in the background, and I can't find out how to open it.

In task scheduler, it says this under "Last Run Result"

Code: Select all

The operation being requested was not performed because the user has not logged onto the network. The specified service does not exist.
However it still ran the server.
ZerK
New to forums
New to forums
Posts: 5
Joined: Sat Feb 22, 2014 8:48 pm

Re: Auto-restart timer

Post by ZerK »

I can't edit my post again, so I have to post another one.

I set it to run whether the user is logged on or not and it worked, but it doesn't show the .exe for the console. How do I make it show it?
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Auto-restart timer

Post by .=QUACK=.Major.Pain »

I think because if you double-click the .bat, it then runs as an Administrator user which allows you to see the application. Should appear in the task manager as run by Administrator.

If it's automated, it's now running as a System user which appears only to run as a background application so you don't see anything. But should appear in the task manager running as System.

If your using some sort of logging, running as System user, then your logs would show whats actually happening in detail.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
Post Reply