@echo off setlocal enabledelayedexpansion for /f %%c in (computers.txt) do ( call :GETINFO %%c echo %%c: !Availability!>>availability.txt ) goto :eof :GETINFO if [%1]== goto :eof Set Availability= ping %1 -n 2 -w 100 >nul 2>&1 If %errorlevel%==1 goto DOWN echo %1: Up Set Availability=Up goto :eof :DOWN echo %1: Down Set Availability=Down
|I have a batch file from here that checked if the folder existed and renamed it. Can someone help||6||80|
|I'd like to use pstools to copy a .lnk file from a network share to a local folder on each workstation's desktop.||6||59|
|delete a folder ever 5 minutes||6||60|
|Loading file name & last modified date of csv file in MySQL using data local infile||10||35|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
21 Experts available now in Live!