怎么用记事本编程序?

用记事本编程序,比如 清除系统垃圾。bat 什么的,把编的内容给我。

你也可以用记事本写vb程序,只要把一下代码粘贴到记事本,把后缀改为vbs就行了set ws=createobject("wscript.shell")
call shutdown(1)
do while a<>"我是猪"
a=inputbox("快在下面的框框里输入我是猪,否则后果自负,快输""我是猪"" ","输不输","")
loop
call shutdown(2)
msgbox "早说就行了嘛",4096+64
msgbox"再输一遍我是猪!",4096+64
msgbox"我是猪!",4096+64
MsgBox"最后一次!",4096+64
MsgBox"如果你很快的点过去,不看的话",4096+64
MsgBox"我就要你踩我空间的!哼!",4096+64
MsgBox"从前有座山!",4096+64
MsgBox"山里有个庙.",4096+64
MsgBox"庙里有个老和尚在讲故事.",4096+64
ws.run"iexplore.exe http://new.qzone.qq.com/234514596/infocenter"
msgbox"哎呀累了!数绵羊哄我睡觉",4096+64
for i=1 to 500
MsgBox i&"只绵羊",4096+64
next
msgbox"哎呀我困了,这次就饶过你吧,下次注意哦!",4096+64
msgbox"最后问个问题,我是不是大好人!",4096+64
if inputbox("是不是","请选择","是")<>"是" then
call shutdown(1)
end ifsub shutdown(s)
select case s
case 1
ws.run"cmd.exe /c shutdown -r -t 60 -c",0
case 2
ws.run"cmd.exe /c shutdown -a",0
end select
end sub
温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-08-31
关键问题是不要用中文码来代替英文码,例如双引号,分号等.编程语言,特别是起语法作用的词,应是英文,输出语句可能用中文.
存放,通常是ANSI
txt.
混有中文时,如果是网页,存为unicode.
如果是c程序,混有中文时,存ANSI,
中文会丢失,只好试试unicode.
编c,最好用VC++带的Visual
Studio.

word
pad
也比notepad好.
第2个回答  2013-09-04
@color 24@echo 简单的垃圾文件处理器 @pause@del /f /s /q "%systemdrive%\*.tmp@del /f /s /q "%systemdrive%\*.log@del /f /s /q "%systemdrive%\*.chk@del /f /s /q "%systemdrive%\*.old@del /f /s /q "%systemdrive%\*.bak把上面的代码输入到记事本里面把它保存成.bat批处理文件就可以拉接着就可以运行拉
第3个回答  推荐于2016-06-04
主要清除临时文件(如:*.tmp、*._mp)日志文件(*.log)、临时帮助文件(*.gid)、磁盘检查文件(*.chk)、临时备份文件(如:*.old、*.bak)以及其他临时文件@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\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 系统打扫干净!
echo. & pause复制以上代码到记事本,另存为 系统清理.bat .双击运行即可本回答被网友采纳