Take the 2-minute tour ×
Code Review Stack Exchange is a question and answer site for peer programmer code reviews. It's 100% free, no registration required.

Write a batch script which configures this list of commands :

  1. Put the name of the window "Cmd configuration"
  2. Put the color of the text in green.
  3. Put the prompt character "$"
  4. Show the message "Cmd is configured"
  5. Ends by keeping the window open..

MY answer ( Is this right?)

@echo off
title cmd configuration
color a
prompt $
@echo off
Echo cmd is configured
share|improve this question

closed as off-topic by 200_success Jun 19 at 20:02

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions containing broken code or asking for advice about code not yet written are off-topic, as the code is not ready for review. Such questions may be suitable for Stack Overflow or Programmers. After the question has been edited to contain working code, we will consider reopening it." – 200_success
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

Your script should read:

@echo off
title cmd configuration
color a
prompt $$
Echo cmd is configured

You need to escape the $ and you only need one @echo off.

share|improve this answer

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