Skip to content

Instantly share code, notes, and snippets.

View mobzystems's full-sized avatar

MOBZystems - Home of Tools mobzystems

View GitHub Profile
@mobzystems
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
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
# 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 September 21, 2024 03:31
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.
http://www.7-zip.org
Import-Module [Your path\]7-Zip