reorder default search paths

This commit is contained in:
2022-08-18 18:31:51 -04:00
parent 5d74cbb92f
commit 8cbfd3df5f
+1 -1
View File
@@ -4,8 +4,8 @@ $FileAllowedAge = (Get-Date).AddMonths(-1)
# Build all Revit local paths
$RevitLocalPaths = @()
ForEach ( $userProfile in (Get-ChildItem -Path "${Env:SystemDrive}\Users" | Where-Object { $_.PSIsContainer }) ) {
If ( Test-Path "${userProfile}\Documents" ) { $RevitLocalPaths.Add("${userProfile}\Documents") }
If ( Test-Path "${userProfile}\Documents\Revit Locals" ) { $RevitLocalPaths.Add("${userProfile}\Documents\Revit Locals") }
If ( Test-Path "${userProfile}\Documents" ) { $RevitLocalPaths.Add("${userProfile}\Documents") }
}
ForEach ( $path in $RevitLocalPaths ) {