![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-11-02 15:26 |
47,815 topics / 349,930 posts / today 0 new / 48,290 members |
| DOS批处理 & 脚本技术(批处理室) » Simulate a funny boot screen with batch processing |
| Printable Version 17,148 / 52 |
| Floor16 3742668 | Posted 2006-05-16 19:53 |
| 荣誉版主 Posts 718 Credits 2,013 | |
This is why you need to use setlocal ENABLEDELAYEDEXPANSION to enable delayed environment variables. Of course, it doesn't mean that you can't achieve variable nesting without enabling delayed environment variables. For example, you can convert it by superimposing display commands: |
|
| Floor17 doscc | Posted 2006-05-16 20:45 |
| 中级用户 Posts 93 Credits 256 From 广东 | |
|
Thanks
|
|
| Floor18 bagpipe | Posted 2006-05-17 11:23 |
| 银牌会员 Posts 425 Credits 1,144 From 北京 | |
|
The delay uses the code of brother 3742668, but I think the effect is not very good
@echo off setlocal enabledelayedexpansion set /a b=81 set a=">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>================================================================================" :back cls for /l %%i in (1,1,20) do @echo. echo Loading Windows 2000... set /a b-=1 echo !a:~%b%,80! if !b! == 1 goto :eof call :delay 80 goto back :delay set /a num=num + 1 if %num% geq %1 (set num=) && goto :eof goto delay |
|
| Floor19 maya0su | Posted 2006-07-24 16:25 |
| 中级用户 Posts 131 Credits 241 | |
|
Another
1.jpg is the result with @echo off! 2.jpg is the result without @echo off! Originally, it's a winxp sp1 system! :o Attachments 1.JPG (95.48 KiB) 2.JPG (60.48 KiB) |
|
| Floor20 maya0su | Posted 2006-07-26 02:59 |
| 中级用户 Posts 131 Credits 241 | |
|
Now testing under the SP2 environment, the situation remains the same!
|
|
| Floor21 voiL | Posted 2006-07-27 05:22 |
| 中级用户 Posts 189 Credits 384 | |
|
Attachments 111.JPG (9.62 KiB) |
|
| Floor22 my3439955 | Posted 2006-10-02 03:49 |
| 中级用户 Posts 99 Credits 272 | |
|
Based on the discussions of the诸位 above, I'll give a summary speech. The batch processing is as follows:
|
|
| Floor23 gzdx0615 | Posted 2006-10-03 09:08 |
| 新手上路 Posts 3 Credits 10 | |
Originally posted by my3439955 at 2006-10-2 03:49: |
|
| Floor24 my3439955 | Posted 2006-10-05 22:28 |
| 中级用户 Posts 99 Credits 272 | |
|
I don't understand what the person above means. Is it saying the screen flickering at the end?
|
|
| Floor25 bg | Posted 2006-10-08 23:43 |
| 初级用户 Posts 34 Credits 118 | |
|
```batch
@echo off color 1f title. mode con lines=10 rem Progress bar ▉▉▉▉▉ set work=0 set n=0 set mo=0 set number=0 rem all is the total number set all=60 set time=%all% :show :check if %number% GTR %mo% set num=%num%▉&set /a mo=%mo%+1&goto check :2 cls echo Progress: %n% / %all% Remaining time: %time% seconds echo. echo. echo Completed %work% %%% echo. if not "%num%"=="" echo %num% if not "%num%"=="" echo %num% if %work%==100 goto end ping 127.1 -n 3 >nul set /a n=%n%+1 set /a time=%all%-%n% set /a work=(%n%)*100/(%all%) set /a number=%work%/3 set /a number=%number%+1 goto show endlocal :end endlocal pause>nul ``` |
|
| Floor26 weilong888 | Posted 2006-10-09 01:01 |
| 银牌会员 Posts 548 Credits 1,270 | |
|
It's very interesting. I tried it and it really works.
|
|
| Floor27 h2o | Posted 2006-10-09 10:42 |
| 初级用户 Posts 18 Credits 44 | |
|
So wonderful!!!
|
|
| Floor28 vkill | Posted 2006-10-09 21:51 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
Originally posted by bg at 2006-10-8 23:43: Nice~ Just what I was looking for |
|
| Floor29 electronixtar | Posted 2006-11-04 11:46 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
http://forum.dirshell.com/read.php?tid=1309&keyword=
There are traitors. Drag them out and shoot them. |
|
| Floor30 vkill | Posted 2006-11-05 05:39 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
Just, dizzy, copy without writing the source, BS
|
|
| Prev 1 2 3 4 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |