Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

folder list

Status
Not open for further replies.

simian336

Programmer
Sep 16, 2009
723
US
Can anyone tell me what the lines are that only have a length in this listing, when I run this command?

Get-ChildItem -Path $path -Recurse -Force | Where-Object {$_.lastwritetime -gt '12/10/2017' -AND $_.lastwritetime -lt '12/11/2017'}

Code:
Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---        12/10/2017   4:04 AM 3492949248 Enclu
                                           0
-a---        12/10/2017   6:02 AM 2632601241 Enclu
                                           6
-a---        12/10/2017   8:00 AM     375296 Enclu
-a---        12/10/2017  10:00 AM    1882624 Enclu
-a---        12/10/2017  12:00 PM    3586560 Enclu
-a---        12/10/2017   2:00 PM     571904 Enclu
-a---        12/10/2017   4:00 PM     506368 Enclu
-a---        12/10/2017   6:00 PM     440832 Enclu
-a---        12/10/2017   8:00 PM     440832 Enclu
-a---        12/10/2017  10:00 PM     375296 Enclu
-a---        12/10/2017   6:03 AM   13123072 k2TLo
-a---        12/10/2017   8:00 AM    2243072 k2TLo
-a---        12/10/2017  10:00 AM    8863232 k2TLo
-a---        12/10/2017  12:00 PM   16466432 k2TLo
-a---        12/10/2017   2:00 PM    3160576 k2TLo
-a---        12/10/2017   4:00 PM    2439680 k2TLo
-a---        12/10/2017   6:00 PM    4340224 k2TLo
-a---        12/10/2017   8:00 PM    4079104 k2TLo
-a---        12/10/2017  10:00 PM    2832896 k2TLo
-a---        12/10/2017   1:01 AM 1266556979 K2_Ba
                                           2
-a---        12/10/2017   4:06 AM 1266484889 K2_Ba
                                           6
-a---        12/10/2017   6:03 AM     188928 YadNa
-a---        12/10/2017   8:00 AM     188928 YadNa
-a---        12/10/2017  10:00 AM     188928 YadNa
-a---        12/10/2017  12:00 PM     188928 YadNa
-a---        12/10/2017   2:00 PM     188928 YadNa
-a---        12/10/2017   4:00 PM     188928 YadNa
-a---        12/10/2017   6:00 PM     188928 YadNa
-a---        12/10/2017   8:00 PM     188928 YadNa
-a---        12/10/2017  10:00 PM     188928 YadNa
-a---        12/10/2017  12:00 AM   23259648 Yadna
-a---        12/10/2017   4:06 AM   23259648 YadNa
 
try changing the outputs and see what you get
Get-ChildItem -Path $path -Recurse -Force | Where-Object {$_.lastwritetime -gt '12/10/2017' -AND $_.lastwritetime -lt '12/11/2017'}|select FullName,Name,Length,Mode,LastWriteTime|Format-Table

or
Get-ChildItem -Path $path -Recurse -Force | Where-Object {$_.lastwritetime -gt '12/10/2017' -AND $_.lastwritetime -lt '12/11/2017'}|select FullName,Name,Length,Mode,LastWriteTime

Regards

Frederico Fonseca
SysSoft Integrated Ltd

FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top