From 6d306dcaf232469b0ec2f9f1e36fc74157bc8050 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Thu, 3 Feb 2022 09:20:26 -0500 Subject: [PATCH] added delete AutoCAD temp files --- Tools.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools.ps1 b/Tools.ps1 index 10c365d..c9820a8 100644 --- a/Tools.ps1 +++ b/Tools.ps1 @@ -603,5 +603,11 @@ function Get-LiquidFilesCLI { Return $exe_path } +# Function to determine if an app is running +function IsRunning ([Parameter(ValueFromPipeline=$true)][string]$Name) { + $RunningInstances = Get-Process | Where { $_.Name -ilike $Name } + If ( $RunningInstances ) { Return $true } Else { Return $false } +} + Setup-MSPDirectories Setup-LogFile \ No newline at end of file