Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Inserting Header Rom in Data File
Name: Saif Nawaz Date: May 14, 2009 at 14:39:19 Pacific OS: Windows XP Subcategory: Batch
Comment:
Hi, This is what i am trying to do. I hava a Data file "abc.csv" and i am trying to insert header row in it.
I was trying create a new file header.csv with header in it using batch script and then copy data from abc.csv file. But I am not able to create header.csv file becoz of my column names which are sepereated by pipe(|) delimiter, if i use quotes" i am able to do it but i shld nt be using quotes.
Eg: My header looks like this
abc|ecd|dfj|
and i am using following script
Echo abc|ecd|dfj > C:\header.csv and i am not getting anything in the header.csv file. But when i take out pipes(|) I do get Headers in the file. But i want Column names with | delimiter. Please Help!!!
Name: StuartS Date: May 14, 2009 at 16:13:47 Pacific
Reply:
You cannot have two different types of delimiters in the same .csv files. It has to be either all commas or all pies, not both.
A header row is no different than any other row in a .csv file. The difference is the way the first row is handled by the application that reads the file. Most applications that read csv files need to be told that the first row is a header row other wise it is just treated like any other row.
Summary: I do not know what your performance expectations are. But I had made a similar program using BASIC to test the creation of CD-ROM from hard disk data files of relatively small files with a directo...
Summary: Hi These subroutines may be useful for calculating date issues in Batch File coding. The sub-rountines use variables a-f so best to not to use them in your calling code. Main varables returned are... ...
Summary: Here is some code to get you started... It may or may not read numbers into an array (the logic is more important, most of the code will work, some errors were deliberately left in), then you will hav...