@echo关闭:: WESComm是“基于Windows Mobile-2003的设备连接”服务的名称。:: Rapimgr是“基于Windows Mobile的设备连接”服务的名称。::两者都是适当的WMDC功能所必需的。::以下注册表输入将RapImgr和WESCOMM服务设置为单独的进程以REG添加HKLM \ System \ CurrentControlset \ Services \ Rapimgr / v Svchostsplitd Disable / T Reg_Dword / D 1 / F> NUL 2>&1 Reg添加HKLM \ System \CurrentControlset \ Services \ WESCOMM / V SVCHOSTSPLITDISABLE / T REG_DWORD / D 1 / F> NUL 2>&1如果%ERRORVEL%== 0(已成功添加的echo服务注册表项)(ECHO失败:请将此文件运行为管理员。转到end_pause)::将WMDC.exe的兼容性设置为Windows Vista(更加始终如一地工作)REG添加“HKLM \ Software \ Microsoft \ Windows NT \ CurrentVersion \ AppCompatFlags \ Tallers”/ V“C:\ Windows \ WindowsMobile \ WMDC.exe“/ D”〜Vistartm“/ f> NUL 2>&1 if%errorLevel%== 0(已成功设置WMDC的回声兼容性模式)else(回声故障:请手动设置echo c:\ windows \ windowsmobile的兼容模式wmdc.exe回显到所有用户的“Vista”。)回声。::停止与WMDC Net Stop相关的服务WESCOMM Net STOP RAPIMGR ::设置运行的服务作为Localsystem SC配置WESCOMM OBJ = localsystem密码=“”> NUL 2>&1 SC Config Rapimgr Obj = localsystem password =“localsystem password =”localsystem password =“localsystem password =”localsystem password =“> NUL 2>&1如果%errorLevel%== 0(被配置为登录为主系统的echo服务)else(echo失败:无法更新服务)回声。::重新启动服务。启动WESCOMM也开始RAPIMGR NET开始WESCOMM:end_pause暂停