Generation

generate functionTue, 17 Jan 2023

cmd restart pc command windows 10

func restart() { let task = Process() task.launchPath = "/sbin/shutdown" task.arguments = ["-r", "now"] task.launch() } restart()

Questions about programming?Chat with your personal AI assistant