ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Run Once from Internet Explorer. (https://www.scoobynet.com/computer-and-technology-related-34/103988-run-once-from-internet-explorer.html)

JackClark 11 June 2002 11:00 AM

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?

Dream Weaver 11 June 2002 11:03 AM

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

ChristianR 11 June 2002 12:32 PM

dreamweavers way will open up internet explorer everytime the machine is logged onto/booted up - is this what you want?

Can you explain a little more what you are requiring.

DJ Dunk 11 June 2002 12:36 PM

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 :)

ChristianR 11 June 2002 12:37 PM

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.

JackClark 11 June 2002 12:49 PM

Bang on Christian. Cheers guys, couple more avenues to look down.

MrDeference 11 June 2002 01:08 PM

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.

JackClark 11 June 2002 02:55 PM

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.


David_Wallis 11 June 2002 02:56 PM

christian..

that wont work... Ill let you work out why :D

David

David_Wallis 11 June 2002 04:25 PM

Cheat... im sure thats been edited now :D

besides.... It wont as H and X dont exist as he never mentioned them :D

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

ChristianR 06 November 2002 02:16 PM

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]

ChristianR 06 November 2002 03:40 PM

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]


All times are GMT +1. The time now is 04:54 AM.


© 2024 MH Sub I, LLC dba Internet Brands