Search found 8 matches
- 12 Jun 2016 21:18
- Forum: DOS Batch Forum
- Topic: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
- Replies: 16
- Views: 18620
Re: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
Its ok if it doesn't work on drive C, its ok if it shows output in my desktop, my next objective is if I type in the command this way: @echo off ping -t <ip address>|cmd /q /v /c "(pause&pause)>nul & for /l %%a in () do (set /p "data=" && echo(!date! !time! !data!)&...
- 12 Jun 2016 21:06
- Forum: DOS Batch Forum
- Topic: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
- Replies: 16
- Views: 18620
Re: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
I think I know what the problem is. I tried to change the path instead of drive C, I switched it to the desktop and it worked. I think there's a security issue here but I'm not sure whether it is a security issue or not.
Thanks
Jeff
Thanks
Jeff
- 10 Jun 2016 21:08
- Forum: DOS Batch Forum
- Topic: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
- Replies: 16
- Views: 18620
Re: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
when I run this command, a command window opened up for a quick sec and disappeared. To debug your code, open Cmd window first, then run the batch in it, post output here. Wow!, guess what? Sambul has a point in this. I tried to opened up a command prompt first then run the <file>.bat then it worke...
- 10 Jun 2016 20:44
- Forum: DOS Batch Forum
- Topic: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
- Replies: 16
- Views: 18620
Re: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
Squashman wrote:jepoytengco wrote: it will truncate the earlier results
Not understanding what you mean by this.
What I mean here, it will just push the earlier messages upwards and you wont be able to see them anymore.
- 09 Jun 2016 20:19
- Forum: DOS Batch Forum
- Topic: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
- Replies: 16
- Views: 18620
Re: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
Yes, the purpose of this is to have a record in a notepad file or text file to check previous timestamp not just the previous.
What do you mean by "Does it all need to be in a single line of code?"
Thanks
Jeff
What do you mean by "Does it all need to be in a single line of code?"
Thanks
Jeff
- 07 Jun 2016 19:23
- Forum: DOS Batch Forum
- Topic: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
- Replies: 16
- Views: 18620
Re: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
Here's a sample output of the command. Wed 06/08/2016 9:19:33.22 Reply from <ip address being PING>: bytes=32 time=1ms TTL=254 As you can see on this output, this shows not only the latency but also the exact date and time. And this output is shown in a notepad/ txt document created in drive C The p...
- 06 Jun 2016 20:28
- Forum: DOS Batch Forum
- Topic: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
- Replies: 16
- Views: 18620
Re: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
I tried to use double %%a on the command, it showed like this. @echo off ping -t < ip address >|cmd /q /v /c "(pause&pause)>nul & for /l %%a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 < ip address >>nul" > C:\< filename >.txt so when I ru...
- 05 Jun 2016 21:29
- Forum: DOS Batch Forum
- Topic: batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
- Replies: 16
- Views: 18620
batch file to continuous PING multiple IP and domain with date/timestamp on a notepad file
Hi, I'm new to this forum and not that good with batch files and scripting. I've made some research about continuously pinging an IP or domain with date/timestamp. The purpose of this is to compare with our ISP whenever they have downtime or intermittent connection. Below is the command I've used pi...