Untitled
Anonymous
plain_text
02/24/2025 4:03 PM
596 B
16
Indexable
clear-host
$csvinhoud = Import-Csv C:\mappen.csv -Delimiter ","
foreach($i in $csvinhoud){
$pad = $i."Pad"
$omschr = $i.'Omschrijving '
$fullpad = "$pad" + " " + "(" +$omschr+ ")"
$testpath = Test-Path -Path $fullpad
if($testpath){
Write-Host "Map bestaat reeds: $fullpad"
}
else{
New-Item $fullpad -ItemType Directory | Out-Null
Write-Host "Map aangemaakt: $fullpad"
}
}
Editor is loading...
Leave a Comment