Import-csv for a single row record in a csv file?


hi, working on csv files , found out if file has single row of record import-csv doesnot work it. please elaborate , give me solution work around it?

well if there no header, can specify one, lets have 3
fields... specify names in order appear in file
 
import-csv myfile.csv -header field1,field2,field3
 

justin rich
http://jrich523.wordpress.com
please remember mark replies answers if , unmark them if provide no help.


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

difference between wuauclt1.exe and wuauclt.exe

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL