Can anyone teach me how to create a function which when called shuts down the computer, or opens an image or video and so on?
sravan953
Recommended Answers
Jump to Postimport sys sys.system('shutdown -s')
That should shut down your system.
All 3 Replies
Reply to this topic
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.