這個是個鬧鐘程式,不會發聲但是會提醒你時間到了。操作方法如下:將以下程式碼複製到寫字板上,然後另存為 鬧鐘.bat ,開啟這個鬧鐘.bat試下~很久以前自己寫的,當時不是很會,程式碼有點繁冗,高手請不要賤笑哈~@echo offtitle -miniclock- Bata1 -CCPCOLOR adel %temp%\1.cab,%temp%\2.hta,%temp%\3.bat||cls:startclsmode con lines=4 cols=39 || clsECHO 請設定一個提醒時間,如8:30或09:50等...ECHO. SET /P a= if "%a:~1,1%"==":" goto ssif "%a:~0,1%"=="0" goto smif "%a:~0,2%"=="11" goto sqif "%a:~0,2%"=="10" goto sq:stCLScolor cECHO 你設定的時間是下午%a%,確認[Y,N]...ECHO.set /p q= if "%q%"=="y" goto aftif "%q%"=="Y" goto aftif "%q%"=="N" goto startif "%q%"=="n" goto startgoto st:aft ECHO :x > %temp%\3.batECHO set p=%%time%% >> %temp%\3.batECHO ECHO "%%p:~0,-6%%" ^> %temp%\1.cab >> %temp%\3.batECHO find %temp%\1.cab "%a%" ^&^& goto p >> %temp%\3.batECHO ping -n 40 127.1>nul >> %temp%\3.batECHO goto x >> %temp%\3.batECHO :P >> %temp%\3.batECHO ECHO ^@ECHO OFF ^>%temp%\x.bat >> %temp%\3.batECHO ECHO ECHO 小子,時間到了,準備幹嗎啊?^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO PAUSE ^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO DEL ^%%^%%0 ^>^>%temp%\x.bat >> %temp%\3.batECHO start/max %temp%\x.bat >> %temp%\3.batECHO del %temp%\1.cab ^&^& del %%0 >> %temp%\3.batECHO set a=wscript.createobject("wscript.shell") >> 3.vbsECHO a.run "%temp%\3.bat /start",0 >> 3.vbs3.vbs && del 3.vbsexit:sqCLScolor cECHO 你設定的時間是上午%a%,確認[Y,N]...ECHO.set /p q= if "%q%"=="y" goto morif "%q%"=="Y" goto morif "%q%"=="N" goto startif "%q%"=="n" goto startgoto sq:morECHO :x > %temp%\3.batECHO set p=%%time%% >> %temp%\3.batECHO ECHO "%%p:~0,-6%%" ^> %temp%\1.cab >> %temp%\3.batECHO find %temp%\1.cab "%a%" ^&^& goto p >> %temp%\3.batECHO ping -n 40 127.1>nul >> %temp%\3.batECHO goto x >> %temp%\3.batECHO :P >> %temp%\3.batECHO ECHO ^@ECHO OFF ^>%temp%\x.bat >> %temp%\3.batECHO ECHO ECHO 小子,時間到了,準備幹嗎啊?^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO PAUSE ^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO DEL ^%%^%%0 ^>^>%temp%\x.bat >> %temp%\3.batECHO start/max %temp%\x.bat >> %temp%\3.batECHO del %temp%\1.cab ^&^& del %%0 >> %temp%\3.batECHO set a=wscript.createobject("wscript.shell") >> 3.vbsECHO a.run "%temp%\3.bat /start",0 >> 3.vbs3.vbs && del 3.vbsexit:ssCLScolor cECHO 你設定的時間是上午%a%,確認[Y,N]...ECHO.set /p q= if "%q%"=="y" goto morif "%q%"=="Y" goto morif "%q%"=="N" goto startif "%q%"=="n" goto startgoto ss:morECHO :x > %temp%\3.batECHO set p=%%time%% >> %temp%\3.batECHO ECHO "%%p:~0,-6%%" ^> %temp%\1.cab >> %temp%\3.batECHO find %temp%\1.cab " %a%" ^&^& goto p >> %temp%\3.batECHO ping -n 40 127.1>nul >> %temp%\3.batECHO goto x >> %temp%\3.batECHO :P >> %temp%\3.batECHO ECHO ^@ECHO OFF ^>%temp%\x.bat >> %temp%\3.batECHO ECHO ECHO 小子,時間到了,準備幹嗎啊?^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO PAUSE ^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO DEL ^%%^%%0 ^>^>%temp%\x.bat >> %temp%\3.batECHO start/max %temp%\x.bat >> %temp%\3.batECHO del %temp%\1.cab ^&^& del %%0 >> %temp%\3.batECHO set a=wscript.createobject("wscript.shell") >> 3.vbsECHO a.run "%temp%\3.bat /start",0 >> 3.vbs3.vbs && del 3.vbsexit:smCLScolor cECHO 你設定的時間是上午%a%,確認[Y,N]...ECHO.set /p q= if "%q%"=="y" goto morif "%q%"=="Y" goto morif "%q%"=="N" goto startif "%q%"=="n" goto startgoto sm:morECHO :x > %temp%\3.batECHO set p=%%time%% >> %temp%\3.batECHO ECHO "%%p:~0,-6%%" ^> %temp%\1.cab >> %temp%\3.batECHO find %temp%\1.cab "%a:~1,4%" ^&^& goto p >> %temp%\3.batECHO ping -n 40 127.1>nul >> %temp%\3.batECHO goto x >> %temp%\3.batECHO :P >> %temp%\3.batECHO ECHO ^@ECHO OFF ^>%temp%\x.bat >> %temp%\3.batECHO ECHO ECHO 小子,時間到了,準備幹嗎啊?^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO PAUSE ^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO DEL ^%%^%%0 ^>^>%temp%\x.bat >> %temp%\3.batECHO start/max %temp%\x.bat >> %temp%\3.batECHO del %temp%\1.cab ^&^& del %%0 >> %temp%\3.batECHO set a=wscript.createobject("wscript.shell") >> 3.vbsECHO a.run "%temp%\3.bat /start",0 >> 3.vbs3.vbs && del 3.vbsexit
這個是個鬧鐘程式,不會發聲但是會提醒你時間到了。操作方法如下:將以下程式碼複製到寫字板上,然後另存為 鬧鐘.bat ,開啟這個鬧鐘.bat試下~很久以前自己寫的,當時不是很會,程式碼有點繁冗,高手請不要賤笑哈~@echo offtitle -miniclock- Bata1 -CCPCOLOR adel %temp%\1.cab,%temp%\2.hta,%temp%\3.bat||cls:startclsmode con lines=4 cols=39 || clsECHO 請設定一個提醒時間,如8:30或09:50等...ECHO. SET /P a= if "%a:~1,1%"==":" goto ssif "%a:~0,1%"=="0" goto smif "%a:~0,2%"=="11" goto sqif "%a:~0,2%"=="10" goto sq:stCLScolor cECHO 你設定的時間是下午%a%,確認[Y,N]...ECHO.set /p q= if "%q%"=="y" goto aftif "%q%"=="Y" goto aftif "%q%"=="N" goto startif "%q%"=="n" goto startgoto st:aft ECHO :x > %temp%\3.batECHO set p=%%time%% >> %temp%\3.batECHO ECHO "%%p:~0,-6%%" ^> %temp%\1.cab >> %temp%\3.batECHO find %temp%\1.cab "%a%" ^&^& goto p >> %temp%\3.batECHO ping -n 40 127.1>nul >> %temp%\3.batECHO goto x >> %temp%\3.batECHO :P >> %temp%\3.batECHO ECHO ^@ECHO OFF ^>%temp%\x.bat >> %temp%\3.batECHO ECHO ECHO 小子,時間到了,準備幹嗎啊?^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO PAUSE ^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO DEL ^%%^%%0 ^>^>%temp%\x.bat >> %temp%\3.batECHO start/max %temp%\x.bat >> %temp%\3.batECHO del %temp%\1.cab ^&^& del %%0 >> %temp%\3.batECHO set a=wscript.createobject("wscript.shell") >> 3.vbsECHO a.run "%temp%\3.bat /start",0 >> 3.vbs3.vbs && del 3.vbsexit:sqCLScolor cECHO 你設定的時間是上午%a%,確認[Y,N]...ECHO.set /p q= if "%q%"=="y" goto morif "%q%"=="Y" goto morif "%q%"=="N" goto startif "%q%"=="n" goto startgoto sq:morECHO :x > %temp%\3.batECHO set p=%%time%% >> %temp%\3.batECHO ECHO "%%p:~0,-6%%" ^> %temp%\1.cab >> %temp%\3.batECHO find %temp%\1.cab "%a%" ^&^& goto p >> %temp%\3.batECHO ping -n 40 127.1>nul >> %temp%\3.batECHO goto x >> %temp%\3.batECHO :P >> %temp%\3.batECHO ECHO ^@ECHO OFF ^>%temp%\x.bat >> %temp%\3.batECHO ECHO ECHO 小子,時間到了,準備幹嗎啊?^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO PAUSE ^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO DEL ^%%^%%0 ^>^>%temp%\x.bat >> %temp%\3.batECHO start/max %temp%\x.bat >> %temp%\3.batECHO del %temp%\1.cab ^&^& del %%0 >> %temp%\3.batECHO set a=wscript.createobject("wscript.shell") >> 3.vbsECHO a.run "%temp%\3.bat /start",0 >> 3.vbs3.vbs && del 3.vbsexit:ssCLScolor cECHO 你設定的時間是上午%a%,確認[Y,N]...ECHO.set /p q= if "%q%"=="y" goto morif "%q%"=="Y" goto morif "%q%"=="N" goto startif "%q%"=="n" goto startgoto ss:morECHO :x > %temp%\3.batECHO set p=%%time%% >> %temp%\3.batECHO ECHO "%%p:~0,-6%%" ^> %temp%\1.cab >> %temp%\3.batECHO find %temp%\1.cab " %a%" ^&^& goto p >> %temp%\3.batECHO ping -n 40 127.1>nul >> %temp%\3.batECHO goto x >> %temp%\3.batECHO :P >> %temp%\3.batECHO ECHO ^@ECHO OFF ^>%temp%\x.bat >> %temp%\3.batECHO ECHO ECHO 小子,時間到了,準備幹嗎啊?^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO PAUSE ^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO DEL ^%%^%%0 ^>^>%temp%\x.bat >> %temp%\3.batECHO start/max %temp%\x.bat >> %temp%\3.batECHO del %temp%\1.cab ^&^& del %%0 >> %temp%\3.batECHO set a=wscript.createobject("wscript.shell") >> 3.vbsECHO a.run "%temp%\3.bat /start",0 >> 3.vbs3.vbs && del 3.vbsexit:smCLScolor cECHO 你設定的時間是上午%a%,確認[Y,N]...ECHO.set /p q= if "%q%"=="y" goto morif "%q%"=="Y" goto morif "%q%"=="N" goto startif "%q%"=="n" goto startgoto sm:morECHO :x > %temp%\3.batECHO set p=%%time%% >> %temp%\3.batECHO ECHO "%%p:~0,-6%%" ^> %temp%\1.cab >> %temp%\3.batECHO find %temp%\1.cab "%a:~1,4%" ^&^& goto p >> %temp%\3.batECHO ping -n 40 127.1>nul >> %temp%\3.batECHO goto x >> %temp%\3.batECHO :P >> %temp%\3.batECHO ECHO ^@ECHO OFF ^>%temp%\x.bat >> %temp%\3.batECHO ECHO ECHO 小子,時間到了,準備幹嗎啊?^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO PAUSE ^>^>%temp%\x.bat >> %temp%\3.batECHO ECHO DEL ^%%^%%0 ^>^>%temp%\x.bat >> %temp%\3.batECHO start/max %temp%\x.bat >> %temp%\3.batECHO del %temp%\1.cab ^&^& del %%0 >> %temp%\3.batECHO set a=wscript.createobject("wscript.shell") >> 3.vbsECHO a.run "%temp%\3.bat /start",0 >> 3.vbs3.vbs && del 3.vbsexit