Hi Guys,
Is there anyway to get a list of files in a folder using the get-childItem command but without file extension?
right now I am using “Get-ChildItem | where Length -eq 0 | select -ExpandProperty Name”
but this returns me a list of files named by hostnames so it looks like this:
Computer1.txt
Computer2.txt
etc…
I need to have it returned like this:
Computer1
Computer2
etc…
so just without extension, is there anyway to do it or do I need to manualy delete every extension?
Thanks a Lot!