Made a program that shuts your PC down after a set amount of time.

Forums General Discussion Hardware & Software Discussion Made a program that shuts your PC down after a set amount of time.

This topic contains 13 replies, has 8 voices, and was last updated by  Remi 3 years, 8 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
Profile Photo

Made a program that shuts your PC down after a set amount of time.

#16434

Just a small project I did myself as I needed a program like this at one point and didn’t want to download malware.
Feedback welcome, its a simple console application that you run, enter time in seconds and then hit enter to start!

Link

Just in case:
Virus Total result

Reply To: Made a program that shuts your PC down after a set amount of time.

#16445

You know you are a programmer when you make a program to simply “shutdown /s /t xxx” 😀

#JustCoderThings

Profile Photo

Reply To: Made a program that shuts your PC down after a set amount of time.

#16446

You know you are a programmer when you make a program to simply “shutdown /s /t xxx” ?

#JustCoderThings

Exactly that!

Reply To: Made a program that shuts your PC down after a set amount of time.

#16448

Just quickly checked the source for lolz

m_UserTime = Convert.ToInt32(Console.ReadLine());

tss no error handling, try “a” as input for example 😛

Reply To: Made a program that shuts your PC down after a set amount of time.

#16455

on win95 “@exit” written in notepad saved as *.bat worked 🙂

Profile Photo

Reply To: Made a program that shuts your PC down after a set amount of time.

#16465

Ctrl+Alt+T > poweroff > Enter here

Profile Photo

Reply To: Made a program that shuts your PC down after a set amount of time.

#16469

Have your cat unplug the power cord. Ez

Profile Photo

Reply To: Made a program that shuts your PC down after a set amount of time.

#16485

Just quickly checked the source for lolz

m_UserTime = Convert.ToInt32(Console.ReadLine());

tss no error handling, try “a” as input for example ?

Fixing now!

Have your cat unplug the power cord. Ez

Well I could ask him to come over I suppose haha

Profile Photo

Reply To: Made a program that shuts your PC down after a set amount of time.

#16487

As quick at win10 boots, boot time is lost gaming time. Keep your devillish program away from me, sir!

Profile Photo

Reply To: Made a program that shuts your PC down after a set amount of time.

#16495

Could you make it so, when BF4.exe exists/shuts down computer turns off too? This would be very useful for AFK seeding, since server auto-kicks you, when it reaches 40 players. Sometimes a bit annoying to jump into Teamviewer to turn off PC.

Profile Photo

Reply To: Made a program that shuts your PC down after a set amount of time.

#16576

Could you make it so, when BF4.exe exists/shuts down computer turns off too? This would be very useful for AFK seeding, since server auto-kicks you, when it reaches 40 players. Sometimes a bit annoying to jump into Teamviewer to turn off PC.

I will give that a go!

Reply To: Made a program that shuts your PC down after a set amount of time.

#16580

Shameful script, as I like them…

@echo off
rem open battlelog
start “” http://battlelog.battlefield.com/bf4/
rem wait 5 minutes (300000 milliseconds)
ping 1.1.1.1 -n 1 -w 300000 >NUL
rem loop
:test_bf4
rem find bf4.exe
tasklist | findstr /R /C:”bf4.exe”
rem if bf4 found
if %errorlevel% equ 0 (
rem wait 30 seconds
ping 1.1.1.1 -n 1 -w 30000 >NUL
rem test again
goto test_bf4
)
rem bf4 not found? Shutdown.
shutdown /s /t 0

Copy/paste, rename with .bat extension. Opens battlelog, waits 5 minutes then tests for bf4.exe every 30 seconds. When bf4.exe not found, shuts down computer.
Very nasty use of ping to wait…

Reply To: Made a program that shuts your PC down after a set amount of time.

#16786

Could you make it so, when BF4.exe exists/shuts down computer turns off too? This would be very useful for AFK seeding, since server auto-kicks you, when it reaches 40 players. Sometimes a bit annoying to jump into Teamviewer to turn off PC.

https://github.com/MarkusKgit/Battlefield-Monitor/releases

Feel free to test. Don’t blame me if something goes wrong though 😛 If anyone wants to contribute feel free to make a new branch. This is my first time using GitHub though, so I am still a noob 😉

Profile Photo

Reply To: Made a program that shuts your PC down after a set amount of time.

#16800

Thanks Markus. I will give it a try.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.