Skip to content

Instantly share code, notes, and snippets.

View mobzystems's full-sized avatar

MOBZystems - Home of Tools mobzystems

View GitHub Profile
mobzystems / Get-SolutionDependencies.ps1
Created March 14, 2023 15:32
Get all project dependencies from a Visual Studio solution file and create an interactive HTML map
#Requires -Version 4
This cmdlet reads a Visual Studio solution file and all projects in it
to determine the dependencies between them. The result is a collection
of Project instances (see class Project)
Each project has a name and (full) path, but also a list of dependencies
in .DependsOn and a list of referencing projects in .ReferencedBy.
These are hashtables of the actual projects, with their full path as the key.
mobzystems / Start-FileSystemWatcher.ps1
Last active April 6, 2024 09:31
Using a FileSystemWatcher from PowerShell
# Start-FileSystemWatcher.ps1 - File System Watcher in Powershell.
# Brought to you by MOBZystems, Home of Tools
# The path to monitor
[Parameter(Mandatory=$true, Position=0)]
# Monitor these files (a wildcard)
mobzystems / 7-zip.psm1
Last active May 2, 2024 10:49
7-Zip commands for PowerShell
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.
Import-Module [Your path\]7-Zip