Re: the first issue. I'm not familiar with the DOS for.. in ...do. What is the objective and I'll try to give some insight into similar kix functionality.

re: the file listing.
The Dir function enumerates files in a given directory.
The GetFileSize retruns the size of a given file.
Using the two together you could enumerate all the files in a folder and add the file sizes to a variable.

If you need additional assistance please let me know.