Script for finding Executables that are command-line programs

I recently came across a FREE utility called IsCommandLineApp from Helge Klein,  a little command-line tool that can be used to determine whether a specific executable is a command-line program. To run this against multiple executables manually is a kind of a pain, so I decided to write a PowerShell script that runs IsCommandLineapp against a defined Folder and all it’s subfolders.


To run the script, first download the IsCommandLineApp from here and then edit the variable $IsCommandLineApp so that it points to the location where you have stored the tool. If you want to search through another folder than C:\Windows change the variable $StartPath


To get all the results into a text file run listcommandlineapps.ps1 >allcmdapps.txt

Leave a Reply

Your email address will not be published. Required fields are marked *