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 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -