WindowsPowershell:
option 1
ping.exe -t COMPUTERNAME|Foreach{"{0} - {1}" -f (Get-Date),$_}
option 2
Test-Connection -Count 9999 -ComputerName COMPUTERNAME | Format-Table @{Name="TimeStamp";Expression={Get-Date}},Address,ProtocolAddress,ResponseTime
More Related Contents:
- Creating a file name as a timestamp in a batch job
- Batch file: Find if substring is in string (not in a file)
- Iterate all files in a directory using a ‘for’ loop
- Batch character escaping
- How to wait all batch files to finish before exiting?
- How to do something to each file in a directory with a batch script
- Command to run a .bat file
- Find out if file is older than 4 hours in Batch file
- How and why does QuickEdit mode in Command Prompt freeze applications?
- How do I echo and send console output to a file in a bat script?
- Set a persistent environment variable from cmd.exe
- IF… OR IF… in a windows batch file
- Windows batch script to read an .ini file
- Copy text from a Windows CMD window to clipboard
- How to display japanese Kanji inside a cmd window under windows?
- Using another language (code page) in a batch file made for others
- Start multiple tasks in parallel and wait for them in windows?
- Counting in a FOR loop using Windows Batch script
- cmd is somehow writing Chinese text as output
- How do I add to the Windows PATH variable using setx? Having weird problems
- Special Characters in Batch File
- Batch to remove duplicate rows from text file
- “rm -rf” equivalent for Windows?
- Rename multiple files in cmd
- How to disable Hyper-V in command line?
- Windows shell command to get the full path to the current directory?
- windows cmd: problems with for /f with a quoted command with quoted parameters
- Remove trailing spaces from a file using Windows batch?
- Batch program to to check if process exists
- ERRORLEVEL vs %ERRORLEVEL% vs exclamation mark ERRORLEVEL exclamation mark