Folder creation

I have a CSV file and I would like to create folders based on 2 columns from that CSV file.

$Folders = Import-Csv -Path “.\data.csv” -Delimiter “;” | Select-Object info1, info2

I’m able to get info1 and info2 but not able to test if the folder is already exist or not

Welcome to the forum. :wave:t3:

Luckily PowerShell has a cmdlet for that purpose.

Please always read the help for the cmdlets you’re about to use completely including the examples to learn how to use them.

And BTW:
When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

How to format code in 1 <---- Click :point_up_2:t4: :wink: