I'm trying to run Internet Explorer from a batch file/scheduled task.
My batch file contains (in its entirety):
cd "%ProgramFiles%\Internet Explore" iexplore.exe http://superuser.com -nohome
When I run the batch file the URL picks up the command line argument, rather than acting on it.
I'm sure I'm doing something silly, but don't see what at the moment. What is the solution?
This is on Windows 7 Home Premium, with Internet Explorer 8.
UPDATE in response to comments:
I got the nohome from some site or other, possilby thw one mentioned in the comments. The previous attempt was actually using
nohangrecovery which is documented Internet Explorer Command-Line Options.
My original attempt looked like this (which is actually as per the MSDN documentation:
cd "%ProgramFiles%\Internet Explore" iexplore.exe -nohangrecovery http://superuser.com
This results in the address bar containing:
Sorry if this is a duplicate - I couldn't see any matches when I searched.