I'm wanting to create a small application that will allow me to schedule a machine to shutdown at a specific time. Any suggestions on how I can make this .exe run at a specific time besides using the Task Scheduler?

Also,
I want to run shutdown -s inside a function. How would i do this?

This solved it for me.

Process.Start("shutdown","-s -t 00")
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.