Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
@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