Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8168713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:37:04+00:00 2026-06-06T20:37:04+00:00

I have a batch file to shutdown the PC @echo off Shutdown /s /f

  • 0

I have a batch file to shutdown the PC

@echo off
Shutdown /s /f /t 600 /c “Your system will shutdown in 10 min”

To abort this operation I’ve another one

shutdown /a

Now what I’m looking for is there any way that when I launch the first batch file it should prompt me to abort the operation or not. If I abort the operation it should be prompt me after 10 min the same option and I want it in loop until I don’t accept the operation to done.

I’ve Googled for it but got nothing so far. Only got some 3rd party tools to do shutdown without abort option.

Is it possible? If yes any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:37:07+00:00Added an answer on June 6, 2026 at 8:37 pm

    Did this in a single batch file. If you want it to run every 10 minutes don’t want the window to stay there for those 10 minutes timegap, then remove the ‘timeout and goto’ and run it using the Windows Task Scheduler

    @ECHO OFF
    :myLabel
    SHUTDOWN /S /F /T 600
    SET /P continue="Your computer is about to shutdown in 10 min do you want to abort (y/n): "
    IF %continue% EQU y (
    SHUTDOWN /A
    TIMEOUT /T 600 /NOBREAK
    GOTO myLabel
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following batch file code: @echo off SET INSTALL_PATH=c:\program files\ :ask_again if exist
I have a batch file that will detect if the user has the .Net
I have a Batch file which will call a Powershell Script : BATCH FILE
I have a batch-file program that gets called from another batch-file so I can
I have a batch file, 'buildAll.bat', that builds a set of projects. It will
I have a batch file that creates a scheduled task using schtasks like this:
I have a batch file that I usually invoke like this: longjob.cmd >result.txt 2>&1
I have this batch file to export two files from svn. But it never
I have a batch file that needs to be passed a parameter that will
I have this batch file that outputs a list of all the tables to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.