你的可以进入组策略中进行修改,比在注册表更快并且不容易出现错误。具体方法是在开始—运行中输入gpedit.msc。。。。你想怎样做就怎样做。。。里面全是中文。。。大家都认识。我就不多说了。。
The following may be what u want!
REM --------START--------
@ECHO OFF
IF NOT EXIST "%~1" GOTO :EOF
SET newName="%~dpn1_uu%~x1"
(FOR /F "usebackq tokens=1,2,5,6 delims=. " %%I IN ("%~1") DO (
ECHO %%I.%%J.0.0 %%K.%%L.255.255))>%newName%
SORT %newName% /O YOU_YOU
SETLOCAL EnableDelayedExpansion
(FOR /F "delims=" %%I IN (YOU_YOU) DO (
IF /I NOT "%%~I"=="!PL!" (ECHO %%~I& SET "PL=%%~I")))>%newName%
ENDLOCAL & DEL YOU_YOU
START "" %newName%
REM --------END--------
Save it into a batch file, e.g. "ip.cmd", which can be put in any folder. When you wanna change some text file, DRAG it onto the icon of "ip.cmd", then you can see the result. OR use it in command line like this: "ip.cmd" "full file name". Try it! Please Hi me if any problem!
psexec.exe后的执行文件应引用绝对路径,想要自动完成还要结合vbs写一个激活窗口并发送指定按键以处理执行psexec.exe后弹出的确认窗口。