Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.
@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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.