Freelancer:
jenishngl
Simple Batch Script
I have written a simple batch script. Hope that helps I explained the code in the attachment. Below is the code without any comments. Refer the image for comments and explanations provided. @echo off SET CURRENT_USER=CURRENT_USERNAME query session | findstr /c:"Active" | find /v /c "" > temp.txt SET /p TOTAL_ACTIVE_USERS= temp.txt SET /p CURRENT_ACTIVE_USER=