So what does the bat file have to do with it? I assume you have the code for the app that produces that window so just add code to it to copy whatever is selected.