1 @ECHO OFF 2 for /f "tokens=3" %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Desktop"') do ( 3 ECHO [InternetShortcut]>%%i\Demo.url 4 ECHO URL=http://www.cnblogs.com/tacyeh/archive/2013/01/26/2877926.html>>%%i\Demo.url
5 ECHO IconFile=C:\Windows\system32\SHELL32.dll>>%%i\Demo.url 6 ECHO IconIndex=220>>%%i\Demo.url 7 ) 8 DEL /F %~s0