Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using this code to copy files from the parent folder. But as soon as the code finish the execution, teh CMD window is closed. So I cannot read the result to see what the problem is.

Here is my code:

COPY ..\File.*
@echo The script is complete.

This need to copy the file "File.exe" from the parent folder to the current. then print a success message, and stay open, so I'll can see if there is any error message.

share|improve this question
up vote 3 down vote accepted

Add a pause at the end, that way you have to press a key before the batch file closes.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .