Results 1 to 4 of 4

Thread: How to Ping batch file in winxp?

  1. #1
    Join Date
    Feb 2009
    Posts
    13

    How to Ping batch file in winxp?

    I normally ping a website to see that it is working OK or not and want a ping batch file to make it easier. What should be in it? At the moment I've got the following example and it doesn't appear to work:
    @echo off
    cd \
    ping www.***.com
    I also want to make a batch file that launches. exe

  2. #2
    Join Date
    Dec 2008
    Posts
    40

    Re: How to Ping batch file in winxp?

    ping www.***.com -t
    -t Ping the specified host until stopped. If you want to stop - type Control-C.
    Type Control-Break to see statistics and continue.

  3. #3
    Join Date
    Dec 2008
    Posts
    72

    Re: How to Ping batch file in winxp?

    The EXE is a DOS (or UNIX) that uses the input-output strandard console + keyboard or when he accepts arguments on the command line and returns a value that can be tested with DOS ERRORLEVEL.

  4. #4
    Join Date
    Dec 2008
    Posts
    28

    Re: How to Ping batch file in winxp?

    dir is the command (or EXE), c: \ is the argument that is passed ala command and> c: \ essai.txt is the redirection of the output, ie the result is written in the specified file rather than screen. From the writing on a file liste_C. bat with not Word that contains the lines dir c: \> c: \ essai.txt echo DONE.

Similar Threads

  1. make file name list in excel using batch file
    By shibinpanayi in forum Windows Software
    Replies: 1
    Last Post: 04-06-2011, 03:44 AM
  2. Windows Batch file to output directory names and size to txt file
    By m2thearkus in forum Software Development
    Replies: 6
    Last Post: 16-07-2010, 12:04 AM
  3. Ad hoc win7(host) winXP(client). Cannot ping!
    By Peacelyk in forum Networking & Security
    Replies: 2
    Last Post: 13-06-2010, 05:35 PM
  4. Dos batch file to sort files based on file names.
    By Jon Osborn in forum Windows Server Help
    Replies: 9
    Last Post: 17-06-2009, 11:06 AM
  5. Replies: 3
    Last Post: 12-03-2009, 12:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,885,508.84306 seconds with 17 queries