@ECHO OFF

@set pg=启动电话系统
@for /F "usebackq tokens=1,2 delims==" %%i in (`wmic os get LocalDateTime /VALUE 2^>NUL`) do if '.%%i.'=='.LocalDateTime.' set ldt=%%j
@set ldt=%ldt:~2,2%%ldt:~4,2%%ldt:~6,2%%ldt:~8,2%%ldt:~10,2%%ldt:~12,2%

ver | find "XP" > nul
if %ERRORLEVEL% == 0 goto ver_xp
:ver_else
@set dt=Desktop
goto doit
:ver_xp
@set dt=桌面

:doit
@del "%USERPROFILE%\%dt%\%pg%*.url" 2>NUL
@echo [InternetShortcut]>"%USERPROFILE%\%dt%\%pg% v%ldt%.url"
@echo URL="%~dp0%pg%.bat">>"%USERPROFILE%\%dt%\%pg% v%ldt%.url"
@echo IconIndex=231>>"%USERPROFILE%\%dt%\%pg% v%ldt%.url"
@echo IconFile="%SystemRoot%\system32\SHELL32.dll">>"%USERPROFILE%\%dt%\%pg% v%ldt%.url"

@echo.   
@echo 桌面图标: %pg% 添加完成.
@echo.
@ping -n 3 127.1 >nul