Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 29-06-2009
Member
 
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:
Quote:
@echo off
cd \
ping www.***.com
I also want to make a batch file that launches. exe
Reply With Quote
  #2  
Old 29-06-2009
Member
 
Join Date: Dec 2008
Posts: 40
Re: How to Ping batch file in winxp?

Quote:
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.
Reply With Quote
  #3  
Old 29-06-2009
Member
 
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.
Reply With Quote
  #4  
Old 29-06-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Ping batch file in winxp?"
Thread Thread Starter Forum Replies Last Post
make file name list in excel using batch file shibinpanayi Windows Software 1 04-06-2011 03:44 AM
Windows Batch file to output directory names and size to txt file m2thearkus Software Development 6 16-07-2010 12:04 AM
Ad hoc win7(host) winXP(client). Cannot ping! Peacelyk Networking & Security 2 13-06-2010 05:35 PM
Dos batch file to sort files based on file names. Jon Osborn Windows Server Help 9 17-06-2009 11:06 AM
Batch file to copy a file from the local drive to a computer on lan? dudelearn Tips & Tweaks 3 12-03-2009 12:56 PM


All times are GMT +5.5. The time now is 02:38 AM.