如果我有一个带有通配符的完整路径,我怎样才能获得具有最旧 LastWriteTime 的文件?
$fullpath = "myFolder:\foooBar*.txt"
$theOldestFile = # What to write to get among the
#fooBar*.txt that has the max LastWriteTime?
如果我有一个带有通配符的完整路径,我怎样才能获得具有最旧 LastWriteTime 的文件?
$fullpath = "myFolder:\foooBar*.txt"
$theOldestFile = # What to write to get among the
#fooBar*.txt that has the max LastWriteTime?