I need a batch file:
Given folder A containing
.txt files; e.g.,
C:\A\a.txt C:\A\b.txt C:\A\c.txt C:\A\d.txt
and folder B (which is empty), I need the batch script to copy one randomly chosen file from folder A to folder B each time I run it.
Inspired by this post, your script could look like this
This assumes that you have a moderate number of files in your source folder. Otherwise, the number of variables in your environment might grow too big.