随机更换壁纸的小程序
程序如下:
SHELL “REN COVER.BMP PASS.BMP”
RANDOMIZE TIMER
A=RND(1)*5
IF A<1 THEN GOTO 100
IF A<2 THEN GOTO 200
IF A<3 THEN GOTO 300
IF A<4 THEN GOTO 400
GOTO 500
100 SHELL “REN COVER1.BMP COVER.BMP”
SHELL “REN PASS.BMP COVER1.BMP”
END
200 SHELL “REN COVER2.BMP COVER.BMP”
SHELL “REN PASS.BMP COVER2.BMP”
END
300 SHELL “REN COVER3.BMP COVER.BMP”
SHELL “REN PASS.BMP COVER3.BMP”
END
400 SHELL “REN COVER4.BMP COVER.BMP”
SHELL “REN PASS.BMP COVER4.BMP”
END
500 SHELL "REN COVER5.BMP COVER.BMP"
SHELL "REN PASS.BMP COVER5.BMP"
END
以上程序经编译后生成的可执行文件存放于Windows目录下,并置于启动组内即可。