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 9226637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:52:42+00:00 2026-06-18T04:52:42+00:00

For some reason my batch script beeps when pressing Space at a PAUSE event.

  • 0

For some reason my batch script beeps when pressing Space at a PAUSE event.

I currently have both:

start /wait %comspec% /Q /C "net stop beep" >nul 2>&1
start /wait %comspec% /Q /C "sc stop beep" >nul 2>&1

…at the start of my script, which has successfully disabled the system beep, but now it has been replaced by a Windows “themed” beep.

Also this happens when I get to a CHOICE event and the user presses Space.

Any ideas on how to make a batch script completely silent, even during input “errors”?

Thanks,
D

  • 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-18T04:52:43+00:00Added an answer on June 18, 2026 at 4:52 am

    Try replacing your choice commands with something like this.

    set /p choice="Please enter a choice: "
    

    It’ll require the user to hit enter but at least it won’t beep.

    If you really want to do it the hard way and turn off the default sound, I think you’ll find it either in HKCU\AppEvents\Schemes\Apps\.Default\SystemAsterisk\.Current\(Default) or in HKCU\AppEvents\Schemes\Apps\.Default\AppGPFault\.Current\(Default).

    Here’s a brief proof of concept.

    @echo off
    setlocal
    
    :: stop bleeping service
    start /wait %comspec% /Q /C "sc stop beep" >nul 2>&1
    
    :: store current event setting for Asterisk
    set loc=HKCU\AppEvents\Schemes\Apps\.Default\SystemAsterisk\.Current
    for /f "tokens=3*" %%I in ('reg query %loc%') do (
        set asterisk=%%I %%J
    )
    
    :: choice with service stopped and Windows Asterisk sound event still active
    choice
    
    :: set Windows Asterisk event sound to ""
    reg add "%loc%" /v "" /t REG_SZ /d "" /f >NUL
    
    :: choice with asterisk set to ""
    choice
    
    :: restore the sound
    reg add "%loc%" /v "" /t REG_SZ /d "%asterisk%" /f >NUL
    

    If that doesn’t work, try replacing SystemAsterisk with AppGPFault. To be honest, I’m unable to recreate your symptom. I hear silence after stopping the beep service. So I’m not entirely sure which event is getting triggered when a user hits the space bar and the beep service is stopped.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, we have a script that creates batch files to XCOPY our
I have a batch statement here, although for some reason it does not output
For some reason the postback event keeps firing for my button. If I place
I'm trying to autoload Putty Pageant with some SSH-keys with a batch script, but
For some reason I can't get this batch file to run in my .NET
For some reason I get the following exception when using Spring Batch in combination
I have done this for other apps but for some reason its not working
I have a simple Web Handler project, and for some reason I cannot choose
I have a database table field that is a nullable datetime. For some reason
For some reason, this line of code is returning undefined for $(this).attr(href) $(a).attr(href, javascript:page('

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.