Re: command prompt won't exit
                You have a tab character at the end of the 
    
It breaks the line spanning in the batch file:
https://winscp.net/eng/docs/faq_batch_file#newline_escaping
Edit: Ok, I didn't notice that you have resolved this on your own :)
        mv line:
"mv *.txt Archive/" ^
It breaks the line spanning in the batch file:
https://winscp.net/eng/docs/faq_batch_file#newline_escaping
Edit: Ok, I didn't notice that you have resolved this on your own :)