reorder default search paths
This commit is contained in:
@@ -4,8 +4,8 @@ $FileAllowedAge = (Get-Date).AddMonths(-1)
|
|||||||
# Build all Revit local paths
|
# Build all Revit local paths
|
||||||
$RevitLocalPaths = @()
|
$RevitLocalPaths = @()
|
||||||
ForEach ( $userProfile in (Get-ChildItem -Path "${Env:SystemDrive}\Users" | Where-Object { $_.PSIsContainer }) ) {
|
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\Revit Locals" ) { $RevitLocalPaths.Add("${userProfile}\Documents\Revit Locals") }
|
||||||
|
If ( Test-Path "${userProfile}\Documents" ) { $RevitLocalPaths.Add("${userProfile}\Documents") }
|
||||||
}
|
}
|
||||||
|
|
||||||
ForEach ( $path in $RevitLocalPaths ) {
|
ForEach ( $path in $RevitLocalPaths ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user