Each line of mylist.txt is a file name followed by its full path.

Example: c:\programs\mirc\mirc.exe

You can ignore the value of %num, it will always return the total number of files exist in the folder, my mistake.