Skip to content

Mount alias drive to folder

Example

ps1
param ($folder, $letter)

# clean previous letter
subst ${letter}: /d

# create alias
subst ${letter}: "D:\$($folder)"

Usage

bat
@echo off
powershell.exe -ExecutionPolicy Bypass -File .\script.ps1 -project "folder" -letter "A"