hi PowerShell,
Here is my sample script as below:
$csvs = Get-ChildItem 'H:\Test1\aa.txt', 'H:\Test1\folder1\bb.txt' -Include *.txt
$newExtension = ".xlsx"
foreach ($csv in $csvs)
{
How to get Directory name without file name?
}
e.g
H:\Test1\
H:\Test1\folder1\
Any Idea?
Thanks