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

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2