Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.