Hi All,
I am typing this but it is not working. Does anyone know what I could be doing wrong.
The command I wrote is:
GCI -file | foreach {$_.name} | sort-object length | format-table name, length
But it is not working. I am expecting a name of the file and length of the string like 8 characters etc. my file is called mystery so it should have 7 as its output of the name, length.
Thank-you
SQL 75