Answer the question
In order to leave comments, you need to log in
How to get only the parent directory of a file without the full path?
Good afternoon.
There is a search for files by creation time through GCI.
GCI -Path $Path | Where-Object {$_.CreationTime -LT $СheckTime}
GCI -Path $Path | Where-Object {$_.CreationTime -LT $СheckTime}|Split-Path -parent
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question