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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:29:41+00:00 2026-06-17T09:29:41+00:00

In my cmd batch files, how may I avoid OS errors causing GUI dialogs

  • 0

In my cmd batch files, how may I avoid OS errors causing GUI dialogs like this

http://img221.imageshack.us/img221/4792/betachriswindowedbetare.png

?

This prevents me using e.g. the Close box. I would like all errors reported to the console.

  • 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-17T09:29:41+00:00Added an answer on June 17, 2026 at 9:29 am

    How to avoid cmd errors causing GUI dialogs?

    In short: you can’t.

    Windows basically supports two types of (usermode) application types: console (mode) or windows (graphical).

    However, there is nothing enforced here. Every console mode application may have GUI elements (e.g. popup a message box in case of an error) and every GUI application may start a console and issue stuff there (see AllocConsole Win32 function).

    So unless every application/command you call from your batch file either

    • is a console application that does not exhibit some sort of GUI

    or

    • is a GUI application but has specific options to make it “behave” in a batch file / command line environment

    there is no way to assure that what you seek.

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

Sidebar

Related Questions

Right now I'm using two Batch files, well call them variables.cmd and main.cmd for
I have about 1000 files like: _etc_sec _home_host_www_temp and etc. How to make batch
Possible Duplicate: Windows batch files: .bat vs .cmd? Hi, I am learning Windows Batch
I would like to write a batch file that runs the cmd line lame.exe
How would I write a batch or cmd file that will rename all files
A windows batch file ( called.bat or called.cmd ) can be called from another
How to hide cmd window while running a batch file? I use the following
I am running an executable in a batch file with two parameters; cmd /k
I already know how to create a new cmd window from a batch script
Is it possible to close Windows Explorer from CMD? I have a batch that

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.