tcbenson 0 Newbie Poster

Apologies if this is not the place for this but I am looking for a python script that will

1) prompt for csv file
2) read in said csv file
3) count # of rows in said csd
4) for each row in csv, get each column as variable

row 1 v1 = name
row 1 v2 = surname and so on.

5) loop through the csv per row, running a command using the obtained variables

python script.py action "name" action "surname" and so on.

Now I have written this in autoit without an issue, and I am somewhat incompetent when it comes to scripting, however I want to port what I have done in autoit into python so its os independent.

any help gratefully received

Thanks
Tony

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.