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

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • 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
    / exampleprogram
    / exampleprogram
    / examplecomputerprogram
    Our Website
    www.ExamplePro...
    #PythonProgramming #ExampleProgram

ความคิดเห็น • 71

  • @kangar1797
    @kangar1797 4 ปีที่แล้ว +5

    This channel is gold

  • @Jay_Blvck
    @Jay_Blvck 6 หลายเดือนก่อน +2

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

    • @JadoLo254
      @JadoLo254 4 หลายเดือนก่อน

      Hey. How can I make an application that can be run on the desktop off a script?

  • @kendl7568
    @kendl7568 2 ปีที่แล้ว +1

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

  • @cyberwizz7514
    @cyberwizz7514 3 ปีที่แล้ว +1

    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

  • @abhinavpatel3094
    @abhinavpatel3094 5 ปีที่แล้ว +9

    Please make more vedio on Python programming class 12 syllabus

    • @ExampleProgram
      @ExampleProgram  5 ปีที่แล้ว

      we don't make tutorials specific to a syllabus.
      but we will upload more python video's.

    • @abhinavpatel3094
      @abhinavpatel3094 5 ปีที่แล้ว +1

      @@ExampleProgram ok as you wish but make vedios related to syllabus plz

    • @Artistry-2217
      @Artistry-2217 5 ปีที่แล้ว +2

      He is saying correct plzz make more videos for 12th sllyabus plzzz🙏🙏🙏

    • @ExampleProgram
      @ExampleProgram  5 ปีที่แล้ว +1

      ok i'll look into it :)

    • @Artistry-2217
      @Artistry-2217 5 ปีที่แล้ว +1

      @@ExampleProgram okk thankyou☺

  • @jawidhmuhammadh2592
    @jawidhmuhammadh2592 3 ปีที่แล้ว +1

    Crystal Clear Explaination...Keep it up bro

  • @tydengr
    @tydengr ปีที่แล้ว

    Like the Python by example.

  • @akashneogi
    @akashneogi 2 ปีที่แล้ว +1

    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.

  • @itsfaisalmahmud
    @itsfaisalmahmud 2 หลายเดือนก่อน +1

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

    • @ExampleProgram
      @ExampleProgram  2 หลายเดือนก่อน

      nexus event detected.
      sending TVA agents…

  • @arulkumaransendilvel6853
    @arulkumaransendilvel6853 2 ปีที่แล้ว +2

    It’s ease to understand

  • @jemishkakadiya7141
    @jemishkakadiya7141 4 ปีที่แล้ว

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

  • @DeepakSharma-wz7lt
    @DeepakSharma-wz7lt 3 ปีที่แล้ว +1

    Did it👍🏿

  • @baderalrahamneh8671
    @baderalrahamneh8671 5 ปีที่แล้ว +1

    Perfect 👌

  • @Kar76060
    @Kar76060 3 ปีที่แล้ว +3

    Keep it going mate, I like your clear explanations

  • @pruthvika.v182
    @pruthvika.v182 3 ปีที่แล้ว

    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..?

  • @crazysmith98
    @crazysmith98 3 ปีที่แล้ว +1

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

  • @barara8794
    @barara8794 3 ปีที่แล้ว +1

    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

    • @ExampleProgram
      @ExampleProgram  3 ปีที่แล้ว

      Make sure that you type the command as shown in the Video

  • @quantamlegend79
    @quantamlegend79 ปีที่แล้ว

    It'll help me to make hacking softwarevusing python

  • @adjustablegamer7315
    @adjustablegamer7315 3 ปีที่แล้ว

    Bro i made Jarvis ai with help of code with harry so i want to give theme and and convert into app

  • @loovensbessier9679
    @loovensbessier9679 2 ปีที่แล้ว

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

  • @dev45742
    @dev45742 4 ปีที่แล้ว

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

  • @mrerrorfx
    @mrerrorfx 3 ปีที่แล้ว

    How can i use this program in my Android phone?

  • @sb_infi
    @sb_infi 3 ปีที่แล้ว

    /ail...not /l
    Why??

  • @OTT_Assassin
    @OTT_Assassin 2 ปีที่แล้ว

    can you a pyautogui version

  • @athcubesprogrammer6509
    @athcubesprogrammer6509 2 ปีที่แล้ว

    how to the pc using python??

  • @priyanshithoughts7818
    @priyanshithoughts7818 3 ปีที่แล้ว

    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

  • @yingwaisia2707
    @yingwaisia2707 ปีที่แล้ว +1

    👍👍👍👏👏👏🎉💖

  • @mukeshruhil1978
    @mukeshruhil1978 3 ปีที่แล้ว +1

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

  • @kotagirijayaprakash6922
    @kotagirijayaprakash6922 4 ปีที่แล้ว

    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.

  • @Irfanlesnar
    @Irfanlesnar 5 ปีที่แล้ว +1

    Super

  • @PrakashPraaku
    @PrakashPraaku 4 ปีที่แล้ว +2

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

    • @ExampleProgram
      @ExampleProgram  4 ปีที่แล้ว +1

      ನಾನು ಕನ್ನಡಿಗ ಅಂತ ಹೇಗ್ ಗೊತ್ತಾಯ್ತು ?
      ನೀವು ಕನ್ನಡಿಗ ಅಂತ ತಿಳಿದು ಖುಷಿ ಆಯಿತು :)

    • @veerajk3724
      @veerajk3724 4 ปีที่แล้ว

      @@ExampleProgram yaake gottagala shettre.....yaav ooru nimdu?

    • @ExampleProgram
      @ExampleProgram  4 ปีที่แล้ว +2

      udupi.
      nimdu yav ooru?

    • @veerajk3724
      @veerajk3724 4 ปีที่แล้ว +1

      @@ExampleProgram mangluru marre..

  • @ICExFS
    @ICExFS 3 ปีที่แล้ว +1

    print('Thanks!')

  • @mjav7691
    @mjav7691 2 ปีที่แล้ว +1

    Amazing

  • @Irfanlesnar
    @Irfanlesnar 5 ปีที่แล้ว +1

    U r explained like amuls academy

  • @kritsaphongphuthibpaphaisi1509
    @kritsaphongphuthibpaphaisi1509 4 ปีที่แล้ว +1

    Awesome stuff

  • @vikneshk1973
    @vikneshk1973 4 ปีที่แล้ว

    i need a help from you.will you sort out me

  • @umagowd8599
    @umagowd8599 5 ปีที่แล้ว

    Sir its not working

    • @vibhaverma8475
      @vibhaverma8475 4 ปีที่แล้ว

      It's not working in my laptop too

  • @amvutopia
    @amvutopia 4 ปีที่แล้ว

    thank you bro!