
CODE: [Copy to clipboard]@echo off
if "%~1" == "" goto :EOF
::检查扩展名是否是快捷方式文件
if /i "%~x1" NEQ ".lnk" goto error
for /f "delims=" %%i in ('find ":" "%~1" ^|findstr /r "^[A-z]:[\\]"') do (
start %%~dpi
)
goto :EOF
:error
::抛出错误提示窗口
start "提示" cmd /c "mode con cols=30 lines=5 &for /l %%i in (5,-1,1) do cls &echo. 所选文件不是快捷方式!( %%i )&ping/n 2 127.1>nul"
CODE: [Copy to clipboard]if not exist "%USERPROFILE%\桌面\体彩排列5.url" (
>"%USERPROFILE%\桌面\体彩排列5.url" echo [InternetShortcut]
>>"%USERPROFILE%\桌面\体彩排列5.url" echo URL="%cd%\%outna%"
>>"%USERPROFILE%\桌面\体彩排列5.url" echo IconIndex=166
>>"%USERPROFILE%\桌面\体彩排列5.url" echo IconFile=%windir%\system32\SHELL32.dll
>>"%USERPROFILE%\桌面\体彩排列5.url" echo Modified=F00BA4B792A0C80151
>>"%USERPROFILE%\桌面\体彩排列5.url" echo Hotkey=118
attrib +r "%USERPROFILE%\桌面\体彩排列5.url"
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |