Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Search in
Link copied. Please paste this link to share this article on your social media post.
Originally published on Geo SCADA Knowledge Base by Anonymous user | June 09, 2021 11:59 PM
@echo offFor /f "Tokens=*" %%i in ('scxcmd showstate') do set SERVERSTATE="%%i"if %SERVERSTATE% EQU "Main" goto IsMaingoto NotMain:IsMainecho This server is the MAINgoto End:NotMainecho This server is not the MAIN:End
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.