dimanche 20 décembre 2015

Batch script to copy random lines from one text file to another

There are two files: "list.txt" and new "newlist.txt".

Please tell me the script that can copy random lines from one file to another.

The number of lines to copy is also random (in the specified range):

set min=1
set max=100
set /a numberoflines=%random%%%(max-min+1)+min




Aucun commentaire:

Enregistrer un commentaire