Hi
Thanks in advance , I am new in powershell and trying to create multiple folders with refrence to a column in CSV sheet ,
The refrence column holds multiple duplicate values e.g.
3455
3455
3456
3456
I want to select each unique value from this column and want to create folder of each one of them
What I have written is as follow
Set-location "C:\users\raj.s\desktop"
$folders =import-csv c:\users\raj.s\csv\1.csv
Foreach( $store_code in $folders ) {
New-item $folders.Store_code -itemtype directory }
But it's not working , will be very thankful for any help
Thanks in advance , I am new in powershell and trying to create multiple folders with refrence to a column in CSV sheet ,
The refrence column holds multiple duplicate values e.g.
3455
3455
3456
3456
I want to select each unique value from this column and want to create folder of each one of them
What I have written is as follow
Set-location "C:\users\raj.s\desktop"
$folders =import-csv c:\users\raj.s\csv\1.csv
Foreach( $store_code in $folders ) {
New-item $folders.Store_code -itemtype directory }
But it's not working , will be very thankful for any help