当前位置:网站首页>bat倒计时代码
bat倒计时代码
2022-08-01 11:06:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
bat倒计时 相信大家都想要代码吧,下面是代码。
@echo off
set a=1
set b=1
:dao1
set /a b=b-1
ping -n 2 -w 500 127.1>nul
cls
echo 倒计时:%a%分%b%秒
if %b%==0 (goto q) else (goto dao1)
if %a%==-1 (goto 5)
set b=60
goto dao1
:q
set b=60
set /a a=a-1
goto dao1
------------------------我是分割线,别把我复制进去哦--------------------
:5
echo 成功!
ping /n 3 127.1>nul代码解析: set /a b=b-1 的意思就是b减1
也有可能会有bug。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/126871.html原文链接:https://javaforall.cn
边栏推荐
- How to Steal $100 Million from the Perfect Smart Contract
- 小程序毕设作品之微信美食菜谱小程序毕业设计成品(1)开发概要
- leetcode/子矩阵元素和
- The use of Ts - Map type
- [CLion] CLion always prompts "This file does not belong to any project target xxx" solution
- 深度学习 | MATLAB实现GRU门控循环单元gruLayer参数设定
- 机器学习 | MATLAB实现支持向量机回归RegressionSVM参数设定
- 如何设计一个分布式 ID 发号器?
- Why Metropolis–Hastings Works
- 语音聊天app源码——语音聊天派对
猜你喜欢

Solve vscode input! Unable to quickly generate skeletons (three methods for the new version of vscode to quickly generate skeletons)

Android Security and Protection Policy

Promise学习(一)Promise是什么?怎么用?回调地狱怎么解决?

表达式引擎在转转平台的实践

Mini Program Graduation Works WeChat Food Recipes Mini Program Graduation Design Finished Products (2) Mini Program Functions

gc的意义和触发条件

Promise学习(四)异步编程的终极解决方案async + await:用同步的方式去写异步代码

爱可可AI前沿推介(8.1)

【likeshop】回收租凭系统100%开源无加密 商城+回收+租赁

冰冰学习笔记:gcc、gdb等工具的使用
随机推荐
监视网络连接的ss命令
Guangyu Mingdao was selected into the list of pilot demonstration projects for the development of digital economy industry in Chongqing in 2022
JS 中的 undefined 和 null 的区别
如何从完美的智能合约中窃取 1 亿美元
Stone Technology builds hard-core brand power and continues to expand the global market
冰冰学习笔记:gcc、gdb等工具的使用
表连接详解
mysql进阶(二十二)MySQL错误之Incorrect string value中文字符输入错误问题分析
xss-labs靶场挑战
我是如何保护 70000 ETH 并赢得 600 万漏洞赏金的
基于ModelArts的物体检测YOLOv3实践【玩转华为云】
Endorsed in 2022 years inventory | product base, science and technology, guangzhou automobile group striding forward
【云驻共创】分布式技术之华为云全域调度技术与实践
Promise to learn several key questions (3) the Promise - state change, execution sequence and mechanism, multitasking series, abnormal penetration, interrupt the chain of Promise
每日一题:连续子数组的最大和(动态规划)
上周热点回顾(7.25-7.31)
Introduction to data warehouse layering (real-time data warehouse architecture)
DBPack SQL Tracing 功能及数据加密功能详解
一篇文章,带你详细了解华为认证体系证书(2)
Introduction to STM32 development Introduce IIC bus, read and write AT24C02 (EEPROM) (using analog timing)