With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.
@Echo Off SETLOCAL EnableDelayedExpansion IF NOT EXIST C:\Computers.txt Goto ShowErr FOR %%R IN (C:\Computers.txt) Do IF %%~zR EQU 0 Goto ShowErr IF EXIST C:\SHAREinfo.csv DEL /F /Q C:\SHAREinfo.htm FOR /F %%c IN ('Type Computers.txt') Do ( Echo Processing: %%c PING -n 1 -w 1000 %%c|Find /I "TTL" >NUL IF NOT ErrorLevel 1 ( SET Qry=wmic /NODE:"%%c" share where type=0 get description,name,path /format:HTABLE !Qry! >>C:\SHAREinfo.htm )ELSE (Echo %%c: Not able to connect ) ) Goto EndScript :ShowErr Echo "C:\Computers.txt" file does not exist or file is empty! :EndScript ENDLOCAL :: Batch Script End