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
    
Are you targeting a specific environment? –  Ryan Gates Jan 23 '13 at 22:15
add comment

1 Answer

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
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.