This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I have no choice but to write this in pseudo code (or at least resembling pseudo code in my mind). | |
# The first thing I want to do is find any Commercial Features (CFs) in JRE | |
# Second, find any Commercial Features (CFs) in JDK | |
Function getJavaCFs | |
# This is going to only find all applications/files beginning with "java" - i.e java.exe, javaw.exe, javaws.exe, etc... in the JRE | |
$filename = '*java*.*' # you can use wildcards here for name and for extension | |
$searchinfolder32 = 'C:\Program Files (x86)\Java\jre1.8.0_201\bin' | |
$searchinfolder64 = 'C:\Program Files\Java\jre1.8.0_201\bin' |