Skip to content

Instantly share code, notes, and snippets.

View elresleff's full-sized avatar
💭
Cracking open the very dusty pages of my coding past to engage in PS and Java

Ed Resleff elresleff

💭
Cracking open the very dusty pages of my coding past to engage in PS and Java
View GitHub Profile
@elresleff
elresleff / Find_java_CFs.ps1
Last active May 16, 2019 18:49
Ed trying to learn what he forgot... Is it like riding a bicycle?
# 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'