Files

11 lines
713 B
PowerShell

$ErrorActionPreference = 'Stop'
$root = "c:\Users\fdavalos\OneDrive - up.edu.mx\microtracking\MicrotrackingFer"
Write-Output '--- .tex files (depth 3, excluding tectonic-src) ---'
Get-ChildItem $root -Recurse -Depth 3 -File -Filter *.tex -ErrorAction SilentlyContinue |
Where-Object { $_.FullName -notmatch 'tectonic-src' } |
ForEach-Object { $_.FullName.Substring($root.Length + 1) }
Write-Output ''
Write-Output '--- PRINCIPAL anywhere (depth 4, excl. tectonic-src) ---'
Get-ChildItem $root -Recurse -Depth 4 -File -ErrorAction SilentlyContinue |
Where-Object { $_.Name -match 'PRINCIPAL' -and $_.FullName -notmatch 'tectonic-src' } |
ForEach-Object { $_.FullName.Substring($root.Length + 1) }