Python Program to Shutdown Restart and Logoff your Windows Computer ( User Input )

preview_player
Показать описание
in this video you will learn to create an example program to shutdown restart and logoff your windows computer using Python programming language.

Here in this tutorial we are using the system function available in the os library.

We will be using the shutdown program available in the windows operating system stored at c:\\windows\\system32\\shutdown

Here we are asking the user whether he wants to do the operation and if the user enters yes then we will execute that code.

our Social Media Pages

Our Website

#PythonProgramming #ExampleProgram
Рекомендации по теме
Комментарии
Автор

This is brilliant. I am working on creating a desktop app that does the same thing but with a UI built using python

Jay_Blvck
Автор

Keep it going mate, I like your clear explanations

Kar
Автор

thank you so much i wrote a program that shutdown a pc when executed. but it did not work because i did not know that i needed to pass an argument. so thanks once more

cyberwizz
Автор

Perfect kannada guy for Python, Good job guru! Olledagli, Ide thara good videos upload madtha iri, 🙌👏👏

PrakashPraaku
Автор

Crystal Clear Explaination...Keep it up bro

jawidhmuhammadh
Автор

Sir you explain fabulously. What i like d about you is you were always to the point

mukeshruhil
Автор

thank you for your videos, easy to understand and straight to the point in a clear precise way

kendl
Автор

Please make more vedio on Python programming class 12 syllabus

abhinavpatel
Автор

Maybe can make a tutorial about, Foundation of building a website using Python. It's should be useful for many people like me.

crazysmith
Автор

This video had 69 comments, that's why I commented in this video and made it 70 😅

itsfaisalmahmud
Автор

If we directly shutdown the program ...it will lead to sudden shutdown of computer and stop cause problem to running files....is there any way to close all open files and then shut the system..?

pruthvika.v
Автор

But can we take the time input (\t) from user input? I mean without it the whole program becomes static and everytime I wanna change the time I've to rewrite the code.

akashneogi
Автор

Good, but i want to sign out the other users of my system which are disconnected. So that time what i need to do?

jemishkakadiya
Автор

When I type in "shutdown" it show "shutdown is not recognized as an internal or external command operable program or batch file" . What should I do

barara
Автор

If i want my computer to go in sleep mode what will be its codes??

dev
Автор

Is it pssible to reboot windows server from remote server? I have multiple servers and i need to reboot them everymonth due to windows patches. If you provide some idea about giving multiple IPs and credentials and reboot command then that helps me a lot. Please suggest me some ideas.

kotagirijayaprakash
Автор

It'll help me to make hacking softwarevusing python

quantamlegend
Автор

Is it is safe because I want to make a Python tkinter project and in it I am using shutdown restart button if we tap them it will be shut down but is it safe for use

priyanshithoughts
Автор

Actually I do this on my Mac it doesn’t work

loovensbessier
Автор

How can i use this program in my Android phone?

mrerrorfx