Binding 'Delimiter' In Powershell -
i know can use export-csv feature export data csv file, keep getting error of export-csv: can not bind parameter 'delimiter'. can nnot convert value "c:\test' type system.char error: string must 1 character long this powershell syntax - , data want export can have \ or - in it $info = (@'foxtrot') foreach ($in in $info) { $dir = "c:\$in" export-csv c:\$in.csv $dir } try using parameter names -delimiter second parameter e.g. export-csv -path "c:\$in.csv" -inputobject $dir