dos 循环打开窗口的语句怎么写.bat

来源:百度知道 编辑:UC知道 时间:2024/05/07 23:02:25
我以前看过一篇文章可现在忘了
大概内容也就是打开记事本写一段代码
好像有些词是这样的
@echo off
else
pause
另存为文件名*.bat

你的意思不是很容易理解啊!

如果你是指循环打开DOS窗口的可能是下面的代码【注意,一旦打开就造成死循环】

@echo off

:loop1

cls

start cmd.exe

goto loop1

用文本文档写入命令,再将文本文档的扩展名(.txt)改为.bat就可以了。

循环打开什么窗口啊?

@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\\*.tmp
del /f /s /q %systemdrive%\\*._mp
del /f /s /q %systemdrive%\\*.log
del /f /s /q %systemdrive%\\*.gid
del /f /s /q %systemdrive%\\*.chk
del /f /s /q %systemdrive%\\*.old
del /f /s /q %systemdrive%\\recycled\\*.*
del /f /s /q %windir%\\*.bak
del /f /s /q %windir%\\prefetch\\*.*
rd /s /q %windir%\\temp & md %windir%\\temp
del /f /q %userprofile%\\cookies\\*.*
del /f /q %userprofile%\\recent\\*.*
del /f /s /q "%userprofile%\\Local Settings\\Temp