mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-19 03:37:26 +00:00
11 lines
371 B
PowerShell
11 lines
371 B
PowerShell
#Set environment variables for Visual Studio Command Prompt
|
|
#http://stackoverflow.com/questions/2124753/how-i-can-use-powershell-with-the-visual-studio-command-prompt
|
|
function batCall([string] $path, [string] $arg)
|
|
{
|
|
cmd /c "$(path)&set" |
|
|
foreach {
|
|
if ($_ -match "=") {
|
|
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
|
|
}
|
|
}
|
|
} |