Freelancer: jenishngl
Share:
Report Entry

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=

Contest Entry #4 for                                                 Windows SHORT One-Liner Script CONTEST can use native versions of gawk sed cut etc and/or perl or dos batch etc, Systems Admin SysAdmin contest

Public Clarification Board

  • jvirt
    Contest Holder
    • 4 years ago

    but your technique is interesting

    • 4 years ago
  • jvirt
    Contest Holder
    • 4 years ago

    it should be made to run commandline not as batch file and the text you put here is incomplete, it is only complete in the picture but the text version you posted here is not complete

    • 4 years ago