Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Desktop Icon Batch File


  • Please log in to reply

#1
alanho

alanho

    Member

  • Member
  • PipPip
  • 14 posts
I would like to create a batch file which opens the URL of a website in IE7 and then place an icon on my desktop to open the batch file. I appreciate that I can place an icon on the desktop which opens a URL directly - but I have a reason to go via a batch file.

If this is possible - can someone please suggest the text.

I would appreciate a simple step by step instruction because I am not all that computer literate.

Edited by alanho, 31 October 2007 - 06:49 AM.

  • 0

Advertisements


#2
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
you would want to do:

call "C:\Program Files\Internet Explorer\IExplore.exe" <Website URL>
note: you MUST have the full path to IExplore.exe IN QUOTES....the URL to the website goes after the path to IExplore.exe's last quote
  • 0

#3
alanho

alanho

    Member

  • Topic Starter
  • Member
  • PipPip
  • 14 posts
Thanks for that - after some experimentation with inverted commas, spaces and bracket signs it worked a treat in this format :-

"C:\Program Files\Internet Explorer\IExplore.exe" "http://www.geekstogo...-to175266.html"


On a seperate thread I have posted problems with desktop icons randomly changing on my Vista computer. I have tried a number of remedies suggested from various forums to no avail.

It struck me today that it is mainly the icons for shortcuts to websites that are the culprits - shortcuts for programmes, folders and files seem stable. Hence I decided to try placing icons on the desktop that opened a website via a batch file as a work-around. So far - so good. But watch this space.
  • 0

#4
alanho

alanho

    Member

  • Topic Starter
  • Member
  • PipPip
  • 14 posts
The fix has worked - see my last post on another thread

Click here

Thanks are due to dsenette for the help with the batch files.
  • 0

#5
PcMedix

PcMedix

    New Member

  • Member
  • Pip
  • 2 posts
FASTER
Hoping your Path Variables are set correctly

@echo off
start EXPLORER.EXE WWW.YOURSITE.COM
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP