关于IPMsg

@echo off
cls
echo. Installing IPMsg...
if "%name%" == "" for /f "tokens=2*" %%n in ('net user "%USERNAME%" /domain^|FINDSTR /C:"Full Name"') do reg add hkcu\Software\HSTools\IPMsgEng /v NickNameStr /t REG_SZ /d "%%o" /f >nul
if "%dept%" == "" for /f "tokens=1*" %%n in ('net user "%USERNAME%" /domain^|FINDSTR /C:"Comment"') do reg add hkcu\Software\HSTools\IPMsgEng /v GroupNameStr /t REG_SZ /d "%%o" /f >nul
reg add hkcu\Software\HSTools\IPMsgEng\BroadCast /v 0 /t REG_SZ /d 10.213.118.255 /f
reg add hkcu\Software\HSTools\IPMsgEng\BroadCast /v 1 /t REG_SZ /d 10.213.119.255 /f
reg add hkcu\Software\HSTools\IPMsgEng /v LogFile /d "%~dp0ipmsg.log"
cls
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\IPMsg.lnk""):b.TargetPath=""%~dp0ipmsg.exe"" :b.WorkingDirectory=""%~dp0"" :b.Save:close")
start ipmsg.exe

标签: none

评论已关闭