Not sure if I should create a new post for this????
I've tied to create a .bat file using File.WriteList
eg
for k = 0 to 100
Main.list4.Add(k)
next
File.WriteList(Main.startFolder , "Rename" & Main.txtFileNo & ".txt", Main.list4)
but it hasn't created a file where each .Add was shown as a new line in the .bat file.
I tried adding a CRLF to the end of each .Add - Main.list4.Add(k & CRLF) but this made no difference