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”
————————————————————
Bookmark this Page!
BlinkList | del.icio.us | Digg it | Furl | reddit | Spurl | StumbleUpon |
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
- Script to Backup the Services Configuration (Startup Type) in Windows 7/XP/2003/Vista
- Add Quick Launch (Create Shortcut) Option to the Send to Menu in Windows XP/Vista
- Shortcut to Switch User Accounts in Windows XP and Vista – tsdiscon.exe
- Error “This File Does Not Have a Program Associated With It” When Launching a Game From Games Explorer
- Clear Recent Documents History in a Single Click in Windows XP and Vista
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?

› 