Results 1 to 5 of 5

Thread: How to shut down/restart the computer with a batch file

  1. #1
    Join Date
    Dec 2009
    Posts
    139

    How to shut down/restart the computer with a batch file

    I am using a custom desktop running with windows XP. I have heard that we can create some batch file which will help us to shut down our system by just double clicking the batch file please help me to create a batch which will shut down as well as restart my desktop. I will be very thankful to you

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How to shut down/restart the computer with a batch file

    If you want to restart your system with the help of a batch file then you will have to make a batch file. For this you need to open the Notepad from the start -> all programs -> accessories. Then type the shutdown -r and save it on your desktop this will help you to restart your machine by just double clicking a batch file.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: How to shut down/restart the computer with a batch file

    To shutdown the system with the help of a batch file you simply need to create a batch file. Open the Notepad program and type the following command "Shutdown -s" and save it as shutdown.bat . Place this file on the desktop and then simply double click it and your system will shut down automatically.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How to shut down/restart the computer with a batch file

    1. To restart the system using a batch file create a file in the notepad which only has the statement "shutdown -r" without the double quotes.
    2. To Shutdown the system using a batch file create a file in the notepad which only has the statement "shutdown -r" without the double quotes.
    3. Remember to save these files with .bat extensions only

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: How to shut down/restart the computer with a batch file

    Make a batch file with the help of notepad and save it as "shutdown.batch" or something like that. Now save it in your start menu -> program folder. Double click it and only write Shutdown /s if you want to shut down and /r for restarting the system. you can also create two seperate files and name them accordingly.

Similar Threads

  1. MS Office 2010 won't restart after shut down
    By Sally_Oh in forum Windows Software
    Replies: 3
    Last Post: 24-03-2012, 09:18 PM
  2. Execute a batch file on a remote computer?
    By Chris D in forum Windows Server Help
    Replies: 6
    Last Post: 20-01-2011, 11:09 PM
  3. How to run batch file each time computer boots
    By Gannon in forum Software Development
    Replies: 4
    Last Post: 27-03-2010, 05:53 PM
  4. Replies: 3
    Last Post: 12-03-2009, 12:56 PM
  5. Run a batch file after logging in from a locked computer
    By AppTech in forum Operating Systems
    Replies: 1
    Last Post: 04-12-2008, 11:50 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,518,148.54737 seconds with 17 queries