Skip to content

Instantly share code, notes, and snippets.

MOBZystems - Home of Tools mobzystems

View GitHub Profile
@mobzystems
mobzystems / Start-FileSystemWatcher.ps1
Last active Apr 19, 2019
Using a FileSystemWatcher from PowerShell
View Start-FileSystemWatcher.ps1
# 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)
@mobzystems
mobzystems / 7-zip.psm1
Last active Mar 30, 2019
7-Zip commands for PowerShell
View 7-zip.psm1
<#
Powershell Module 7-Zip - 7-Zip commands for PowerShell
The functions in this module call 7za.exe, the standAlone version of 7-zip to perform various tasks on 7-zip archives.
Place anywhere, together with 7za.exe and 7zsd.sfx. 7za.exe is required for all operations; 7zsd.sfx for creating self
extracting archives.
http://www.7-zip.org
Import-Module [Your path\]7-Zip
You can’t perform that action at this time.