# This script closes Content Player, clears the cache files, and then restarts it. # Minimize PowerShell $sig = '[DllImport("user32.dll")] public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);' Add-Type -MemberDefinition $sig -name NativeMethods -namespace Win32 $PSId = @(Get-Process "powershell" -ErrorAction SilentlyContinue)[0].MainWindowHandle [Win32.NativeMethods]::ShowWindowAsync($PSId, 2) #Close Content Player Stop-Process -processname Signage start-sleep 2 #Clear Cache Files Remove-Item –path "C:\Users\Public\Documents\Four Winds Interactive\Signage\Channels\(default)\Cache\*" –recurse -force start-sleep 2 #Open Content Player Start-Process -FilePath "C:\Program Files (x86)\Four Winds Interactive\Content Player\Signage.exe"