zoukankan      html  css  js  c++  java
  • 视窗

     首先我们要DIY它的窗口。使用命令:color、mode、msg。
        --1、设置窗口背景色和字体颜色by color。详细内容参见color /?。
        --2、设置窗口大小by "MODE CON [COLS=c] [LINES=n]",cols即宽度,lines即高度。
        --3、GUI交互窗口by msg。详细内容参见msg /?。
        视窗DIY举例:
    ===============================================
    @echo off
    set a=10
    set b=0
    :tex
    set /a a+=3
    set /a b+=1
    mode con cols=%a% lines=%b%
    if %a% lss 60 goto :tex

    echo O(∩_∩)O 圣诞快乐 O(∩_∩)O
    set a=15,a6,2e,d0,34,8b,4f,9d,5e
    for %%i in (%a%) do (
    ping -n 2 127.1>nul
    color %%i
    )
    for %%i in (%a%,%a%) do (
    ping -n 1 127.1>nul
    color %%i
    )
    >>ms.txt echo          */.    .   .    *      .
    >>ms.txt echo          .*    .    []           * __
    >>ms.txt echo          */ .   ./~~~~~~~~~~~~'. ^|◆
    >>ms.txt echo           *   ,/,..,\,...........,.◆
    >>ms.txt echo           ^|^| ..▎# ▎田 田 ▎ ^| ▎◆
    >>ms.txt echo           ^|^| ^&^&▎   ▎       ▎'^|'▎ o
    >>ms.txt echo           ^|^| ##■■■■■■■■■■〓
    msg %username% /w /time:3600 <ms.txt
    del ms.txt
    pause

  • 相关阅读:
    Java代码是怎么运行的
    Java单例模式
    redis分布式锁实现
    zuul2.0
    配置ssh免密钥登陆多台从机
    Nifi-install-config
    Configure Access to Multiple Clusters
    kubernetes集群搭建(kubeadm,kubelet)
    shell 编程
    系统管理
  • 原文地址:https://www.cnblogs.com/zouhong/p/9939533.html
Copyright © 2011-2022 走看看