Run Once from Internet Explorer.
#1
Scooby Senior
Thread Starter
I'm looking to have a machine go to a certain web page just the once the first time explorer is run and just the once, is there a way that anyone knows?
#2
Scooby Regular
Jack
You can somehow set smoething in the registry that allows something to Runonce.
I only know cos I ran MSCONFIG after un-installing a program this week, and noticed that it had put an action in there to delete remaining files on bootup. It was under the RunOnce reg key. I think it is in local machine > software > microsoft > windows > currentversion > runonce or something.
Not sure how you would setup the command line though
DW
You can somehow set smoething in the registry that allows something to Runonce.
I only know cos I ran MSCONFIG after un-installing a program this week, and noticed that it had put an action in there to delete remaining files on bootup. It was under the RunOnce reg key. I think it is in local machine > software > microsoft > windows > currentversion > runonce or something.
Not sure how you would setup the command line though
DW
#4
Moderator
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
You could make the web page the default homepage then within that page add the code to popup a window promting you to make another page the homepage . . . . .
Don't ask me how, just seen it done before
Don't ask me how, just seen it done before
#5
Scooby Regular
iTrader: (1)
actually, after re-reading what you wrote, you basically are asking for:
"User double clicks on internet explorer for the first time, goes to this webpage: pagefirst, if user has already ran internet explorer go to pagetwo."
A few ways of doing it, you could do it in a batch file, with some simple error checking for a file on their h: drive, and using registry keys.
"User double clicks on internet explorer for the first time, goes to this webpage: pagefirst, if user has already ran internet explorer go to pagetwo."
A few ways of doing it, you could do it in a batch file, with some simple error checking for a file on their h: drive, and using registry keys.
#7
Author a web page, put this on the local machine.
In this page have some JScript that sets the users home page and redirects them to the site that you wish them to see once.
Set this page as the homepage.
Bingo.
First load the browser loads the local script page, resets the home page and redirects to the page you want them to see...
Have a look here for some pointers.
In this page have some JScript that sets the users home page and redirects them to the site that you wish them to see once.
Set this page as the homepage.
Bingo.
First load the browser loads the local script page, resets the home page and redirects to the page you want them to see...
Have a look here for some pointers.
Trending Topics
#8
Scooby Senior
Thread Starter
Mr Defence, local page is the way to go. One of the dev guys here had just suggested it before I read your post.
Thanks again chaps, great resource.
Thanks again chaps, great resource.
#10
Scooby Regular
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
Cheat... im sure thats been edited now
besides.... It wont as H and X dont exist as he never mentioned them
Sorry in one of them moods today, but in theory it would, but I think he was on about doing it for any user...
David
besides.... It wont as H and X dont exist as he never mentioned them
Sorry in one of them moods today, but in theory it would, but I think he was on about doing it for any user...
David
#11
Scooby Regular
iTrader: (1)
something in the line of this, needs some fine tuning if you are going to run as logon (as this code really for i.e. icon shortcut instead) - but i think you will get the idea - don't have time to look in to it anymore at the mo though...
--batch file--start--
@echo off
cls
if exist H:\ranfirst.txt goto amended1
Echo *** You have never ran internet explorer.
c:\winnt\regedit.exe /s x:\regkeys\regkey1.reg
copy x:\regkeys\ranfirst.txt h:\
goto end
:amended1
Echo *** You have ran internet explorer in the past.
c:\winnt\regedit.exe /s x:\regkeys\regkey2.reg
goto end
:end
--batch file--end--
--regkey1--start--
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="http://firstpage.togoto.com"
"Save Directory"="H:\\"
--regkey1--end--
--regkey2--start--
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="http://secondpage.togoto.com"
"Save Directory"="H:\\"
--regkey2--end--
[Edited by ChristianR - 6/11/2002 3:40:50 PM]
--batch file--start--
@echo off
cls
if exist H:\ranfirst.txt goto amended1
Echo *** You have never ran internet explorer.
c:\winnt\regedit.exe /s x:\regkeys\regkey1.reg
copy x:\regkeys\ranfirst.txt h:\
goto end
:amended1
Echo *** You have ran internet explorer in the past.
c:\winnt\regedit.exe /s x:\regkeys\regkey2.reg
goto end
:end
--batch file--end--
--regkey1--start--
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="http://firstpage.togoto.com"
"Save Directory"="H:\\"
--regkey1--end--
--regkey2--start--
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="http://secondpage.togoto.com"
"Save Directory"="H:\\"
--regkey2--end--
[Edited by ChristianR - 6/11/2002 3:40:50 PM]
#12
Scooby Regular
iTrader: (1)
david - yes it will, if ran from a batch file. if ran on logon script it wont, as the script would run on logon, copy the file accross. next time when loggon on, the script would run, see that the txt file already exists, and replace the homepage to the next one - even if the user hasn't used ie.
[Edited by ChristianR - 6/11/2002 3:42:46 PM]
[Edited by ChristianR - 6/11/2002 3:42:46 PM]
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM