Error in Batch File "The process tried to write to a nonexistent pipe."

Posted on 2007-07-27
Last Modified: 2008-01-09
Every time I run the simple batch file below I get the following error :

The process tried to write to a nonexistent pipe. can I solve this ?

PING -n 1 | FIND "TTL=" >NUL
PING -w 3000 | FIND "TTL=" >NUL
IF ERRORLEVEL 0 ECHO No Error pinging server
Question by:http://
    LVL 30

    Accepted Solution

    I ran it on my home XP/Pro machine and it worked fine. The only thing I could see that might help is this reference:
    LVL 44

    Assisted Solution

    eliminate the FIND TTL= statement and it will work in a batch file.  The batch expects the pipe to follow by output immediately.  YOu will find this works at the command line, it is simply an artifact of the DOS batch.
    LVL 4

    Assisted Solution

    You can remove the FIND part, however PING doesn't always return an error level 0 when the server was pingable, for example if your router replies that it can't ping the destination network.

    If you remove the >NUL you keep the function of the batchfile as it was supposed to be, it only output text if it finds the TTL in the ping output, but at least you're sure that it works.
    LVL 30

    Expert Comment

    Your history of grading has eliminated me from helping you in the future.

    I suggest you read the EE Guidelines...

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
    This article was inspired by a question here at Experts Exchange ( The requirements stated in that question are (1) reduce the file size of a large number of…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 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

    15 Experts available now in Live!

    Get 1:1 Help Now