12 lines
601 B
PowerShell
12 lines
601 B
PowerShell
$mql5 = "C:\Users\sahrk\AppData\Roaming\MetaQuotes\Terminal\FB9A56D617EDDDFE29EE54EBEFFE96C1\MQL5"
|
|
|
|
Write-Host "=== All git repos under MQL5 ===" -ForegroundColor Cyan
|
|
Get-ChildItem $mql5 -Recurse -Force -Filter ".git" -Directory -ErrorAction SilentlyContinue |
|
|
ForEach-Object {
|
|
$repoPath = $_.Parent.FullName
|
|
$short = $repoPath.Replace($mql5, "MQL5")
|
|
$remote = (git -C $repoPath remote get-url origin 2>&1) -join ""
|
|
Write-Host ""
|
|
Write-Host " PATH: $short" -ForegroundColor Yellow
|
|
Write-Host " REMOTE: $remote" -ForegroundColor Gray
|
|
}
|