当前位置:网站首页>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
边栏推荐
- 开天aPaaS之移动手机号码空号检测【开天aPaaS大作战】
- Online - GCeasy GC log analysis tools
- 复现assert和eval成功连接或失败连接蚁剑的原因
- Kaitian aPaaS mobile phone number empty number detection [Kaitian aPaaS battle]
- Dapr 与 NestJs ,实战编写一个 Pub & Sub 装饰器
- 基于ModelArts的物体检测YOLOv3实践【玩转华为云】
- 万字解析:vector类
- Mini Program Graduation Works WeChat Food Recipes Mini Program Graduation Design Finished Products (2) Mini Program Functions
- 解决vscode输入! 无法快捷生成骨架(新版vscode快速生成骨架的三种方法)
- 稀疏表示--学习笔记
猜你喜欢

C#/VB.NET 将PPT或PPTX转换为图像

稀疏表示--学习笔记

Why Metropolis–Hastings Works

C#/VB.NET 将PPT或PPTX转换为图像

Jenkins安装插件遇到的问题

Online - GCeasy GC log analysis tools

基于ArkUI eTS开发的坚果食谱(NutRecipes)

leetcode/submatrix element sum
退役划水

Mini Program Graduation Works WeChat Food Recipes Mini Program Graduation Design Finished Products (4) Opening Report
随机推荐
Mini Program Graduation Works WeChat Food Recipes Mini Program Graduation Design Finished Products (3) Background Functions
稀疏表示--学习笔记
RK3399 platform development series on introduction to (kernel) 1.52, printk function analysis - the function call will be closed
A new generation of ultra-safe cellular batteries, Sihao Airun goes on sale starting at 139,900 yuan
Stone Technology builds hard-core brand power and continues to expand the global market
迁移学习冻结网络的方法:
昇思大模型体验平台初体验——以小模型LeNet为例
xss漏洞学习
正则表达式
[CLion] CLion always prompts "This file does not belong to any project target xxx" solution
千万级乘客排队系统重构&压测方案——总结篇
The use of Ts - Map type
【likeshop】回收租凭系统100%开源无加密 商城+回收+租赁
Cross-domain network resource file download
【cartographer ros】十: 延时和误差分析
Guangyu Mingdao was selected into the list of pilot demonstration projects for the development of digital economy industry in Chongqing in 2022
2022年7月31日--使用C#迈出第一步--使用 C# 创建具有约定、空格和注释的易读代码
Promise learning (1) What is Promise?how to use?How to solve callback hell?
通配符SSL证书不支持多域名吗?
JS 中的 undefined 和 null 的区别