I need a batch script to get the input from user and write it to second column in a text file. Below is the one I tried, but it just create the incremental sequence of numbers, but I cant place them in the right place.
set /p rows: Enter number of rows:
for /l %%g in (1,1,%rows%) do echo %%g>> myfile.txt
myfile.txt is a comma separated file having 10 columns.
I want the incremental row numbers to come in second column.
Assuming
myfile.txtfile looks something like thisThen this
Will output