I'm capturing the file full path and last modified date in a text file but few directories with longer path gets truncated. Is it possible to get the full path without truncation or ....
Code I used:
Get-ChildItem -Path "\\server\xyz_data\devdata\fail logs\xxx\yyy\2012\01june2012\" -Recurse |
select -Property Filename, LastWriteTime |
Out-File -Encoding Ascii -Append d:/file.txt
Output:
server\xyz_data\devdata\fail logs\xxx\yyy\2012\01june2012\text123..... 22/03/2012 11.23.00
Is there any restrictions on number of characters to captured?