This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Get-FileType { | |
| <# | |
| .SYNOPSIS | |
| Try to get the file type based on it's file signature. | |
| .DESCRIPTION | |
| This function uses Get-FileSignature by Boe Prox and a list of | |
| known file signatures to try to find the file type of a given file. | |
| .EXAMPLE | |
| Get-FileType c:\path\to\file.pdf | |
| .LINK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Start-FileSystemWatcher.ps1 - File System Watcher in Powershell. | |
| # Brought to you by MOBZystems, Home of Tools | |
| # https://www.mobzystems.com/code/using-a-filesystemwatcher-from-powershell/ | |
| [CmdletBinding()] | |
| Param( | |
| # The path to monitor | |
| [Parameter(Mandatory=$true, Position=0)] | |
| [string]$Path, | |
| # Monitor these files (a wildcard) |