Create an internet shortcut using batch file
Q:Â Is there a way to create a batch file which would put a desktop icon onto the desktop which invokes an html page in a web browswer (MSIE) and change the associated icon for that particular desktop item, all in one batch file? Thanks
A: Yes. This is possible. Here are some examples:
——————–Launches a HTML page—————
echo [InternetShortcut] >”%userprofile%\desktop\localpage.url”
echo URL=C:\myfile.htm >>”%userprofile%\desktop\localpage.url”
echo IconFile=C:\favicon.ico >>”%userprofile%\desktop\localpage.url”
echo IconIndex=0 >>”%userprofile%\desktop\localpage.url”
————————————————————
——————–Launches a website——————–
echo [InternetShortcut] >”%userprofile%\desktop\google.url”
echo URL=http://www.google.com/ >>”%userprofile%\desktop\google.url”
echo IconFile=e:\Backups\google.ico  >>”%userprofile%\desktop\google.url”
echo IconIndex=0 >>”%userprofile%\desktop\google.url”
————————————————————
Copyright © 2008 Ramesh Srinivasan. All rights reserved.
RELATED POSTS
- How to run .BAT files invisibly, without displaying the Command Prompt window
- Refresh RSS feeds in Internet Explorer using a shortcut
- Create a Shortcut to launch Outlook Express New Message window directly
- How to start Internet Explorer 8 in InPrivate Browsing mode by default
- Change the Default Editor for BAT files in Windows 2000/XP/Vista
- Add Quick Launch (create shortcut) option to the Send To menu in Windows XP/Vista
- Error “This file does not have a program associated with it” when launching a game from Games Explorer
- Shortcut to Switch User accounts in Windows XP and Vista - tsdiscon.exe
- Clear Recent Documents history in a single click in Windows XP and Vista
- Supercharge your Windows Vista Start menu using Start++
BOOKMARK THIS PAGE
BlinkList | del.icio.us | Digg it | Furl | ma.gnolia | Newsvine | reddit | Spurl | Wink |



If you enjoyed this post, make sure you
Prefer an E-mail subscription?