17 lines
700 B
PowerShell
17 lines
700 B
PowerShell
# cleanup-loose-ea.ps1
|
|
# Removes stale loose EA copies from VizionAI-Trading\ root.
|
|
# Source of truth is VizionAI-Trading-Repo\VizionAI-EA\ (git-tracked).
|
|
|
|
$root = "C:\Users\sahrk\AppData\Roaming\MetaQuotes\Terminal\FB9A56D617EDDDFE29EE54EBEFFE96C1\MQL5\Shared Projects\VizionAI-Trading"
|
|
|
|
# Keep only helper scripts and logs — delete all .mqh, .mq5, stray .md
|
|
Get-ChildItem $root -File | Where-Object {
|
|
$_.Extension -in @('.mqh', '.mq5', '.md')
|
|
} | ForEach-Object {
|
|
Remove-Item $_.FullName -Force
|
|
Write-Host "Deleted loose copy: $($_.Name)"
|
|
}
|
|
|
|
Write-Host ""
|
|
Write-Host "VizionAI-Trading\ root now contains:"
|
|
Get-ChildItem $root | Select-Object Name, Attributes | Format-Table -AutoSize
|