Skip to content

Instantly share code, notes, and snippets.

@vScripter
Created September 5, 2017 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vScripter/94bf70bd9caad40d85109db32b9ef0da to your computer and use it in GitHub Desktop.
Save vScripter/94bf70bd9caad40d85109db32b9ef0da to your computer and use it in GitHub Desktop.
PROCESS {
if (Test-Path -LiteralPath $filePath -PathType Leaf) {
Get-Content -LiteralPath $filePath -ReadCount 0
} else {
Write-Warning -Message 'Work Log file has not been created'
} # end if/else
} # end PROCESS block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment