-
Niko Ehrenfeuchter authored
The previously used "Resources" folder is not a good location for them as they are not really part of the application itself.
Niko Ehrenfeuchter authoredThe previously used "Resources" folder is not a good location for them as they are not really part of the application itself.
Watch-Logfile.ps1 399 B
$LocalConfiguration = ".\ScriptsConfig.ps1"
if (Test-Path $LocalConfiguration) {
. $LocalConfiguration
} else {
Write-Host "Can't find configuration '$LocalConfiguration'!" -Fore Red
Exit
}
$LogFile = $ServiceDir + "\service.log"
if (Test-Path $LogFile) {
Write-Host "Watching logfile '$LogFile':"
Get-Content -Tail 20 -Wait $LogFile
} else {
Write-Host "Logfile '$LogFile' doesn't exist."
}