How do I write a batch script that reads two columns of a CSV file at a time and executes a program that utilizes the retrieved data?

خرید بک لینک

I am using a specialist java application which is used in my field (geology). The way I have written my batch files up until now is to take one CSV file at a time and access and process that data. But now I have put all the data from each CSV into one CSV file (with each dataset being represented in two adjacent columns). I want to take the first two columns, process that data in the java application and then output the results in a pdf. I want to iterate through the entire CSV (2 columns at a time) and produce a new pdf each time. Below is an example of how I have been creating the batch file:

java -jar "C:/some_java_app_for_graphing.jar" some arguments here (irrelevant) in="C:mydata.csv" out="C:my_graph.pdf"

Then I would copy and paste this and change the input and output file names accordingly - tedious work when you have many datasets. So how can I select certain columns in the CSV and then iterate through selecting two columns at a time and, each time, output the results to a new pdf?

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 345 تاريخ: چهارشنبه 6 مرداد 1395 ساعت: 19:03

صفحه بندی