Ignore Errors

Posted on 2008-11-10
Last Modified: 2013-11-10

I am running a batch script to install and delete some out of date programs and new programs on computers at the office.

no matter if the machine has the correct software or not, I want the script to execute.  Every once in a while depending on machine configs I fill get a pop up error - that is irrelevant

Is there a quick code to add to the beginning of my batch script that will force the script to ignore all errors and continue with its thing?

Question by:geekhelp4u
    LVL 38

    Accepted Solution

    There is not one catch-all command to do that in batch.  You will need to isolate the command in the script which is causing the error and then see if it supports a switch to make it run without prompting.
    LVL 1

    Author Closing Comment


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    twoTwo  challenge 35 74
    seriesUp challenge 7 83
    scores100 challenge 3 68
    array220 challenge 8 32
    This is about my first experience with programming Arduino.
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now