Dos programming-change the form color and dos programming form color

Source: Internet
Author: User

Dos programming-change the form color and dos programming form color

Dos is a commonly used operating system in the past, based on Unix. It has been gradually forgotten, but familiarity with dos batch processing can simplify many operations.

Start dos programming.

The doscommands used include @, echo, title, for do, %, and pause.

My writing steps are as follows:

@ Title Color
@ Echo off
Echo "change window color"
Set a = 15, a6, 2e, d0, 34, 8b, 4f, 9d, 5e
Pause
For % I in (% a %) do color % I & echo % I & pause
: For % I in (% a %, % a %) do (
: Ping-n 1 127.1> nul
: Color % I
::)
Pause

Some color values are stored with variable a, and the color of the window is continuously changed through for do.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.