Search found 2 matches

by MarkL
06 Apr 2010 10:42
Forum: DOS Batch Forum
Topic: Find an IP address
Replies: 4
Views: 6013

Re: Find an IP address

Here's two methods. The second method does require a file containing Carriage Returns ("CR") only. @echo off :: This part pings each node reported by "net view". setlocal enabledelayedexpansion rem List net view nodes. echo. echo Listing net view nodes ... echo. for /f %%a in ('n...
by MarkL
04 Apr 2010 23:00
Forum: DOS Batch Forum
Topic: Monitoring system service
Replies: 3
Views: 5336

Re: Monitoring system service

Greetings!

Are you aware that fc sets the variable %ERRORLEVEL% to 0 if the files compare equal, which can be tested?