MSFN Forum: Auto Run a file after the Windows XP settings are loaded - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Auto Run a file after the Windows XP settings are loaded Rate Topic: -----

#1 User is offline   Outbreaker 

  • Member
  • PipPip
  • Group: Members
  • Posts: 195
  • Joined: 08-August 07

Posted 24 May 2010 - 04:06 AM

HI :)

Does someone know what to do so windows will run a file after the Windows XP settings are loaded (after RunOnceEx) ?
I tryed also a addon that added a RunOnce RegKey but then it will run it T-13 :}

This post has been edited by Outbreaker: 24 May 2010 - 04:11 AM



#2 User is offline   HØLLØW 

  • Member
  • PipPip
  • Group: Members
  • Posts: 125
  • Joined: 01-March 07
  • OS:XP Pro x86
  • Country: Country Flag

Posted 24 May 2010 - 07:21 AM

Would you like to run the file just once or what?


You can put it in the Startup folder in Startmenu to run it after login...

#3 User is offline   Outbreaker 

  • Member
  • PipPip
  • Group: Members
  • Posts: 195
  • Joined: 08-August 07

Posted 24 May 2010 - 08:41 AM

Yes i want to run the file only once and i can't use the Startup folder in Startmenu because i don't want to loss the Recovery Console option.

This post has been edited by Outbreaker: 24 May 2010 - 08:41 AM


#4 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 24 May 2010 - 10:17 AM

View PostOutbreaker, on 24 May 2010 - 08:41 AM, said:

i can't use the Startup folder in Startmenu because i don't want to loss the Recovery Console option.

Would you like to clarify this statement!

Outbreaker, you appear to be asking many questions on these boards, this is not a problem, however you provide very little, incorrect or no information to the Members in order for them to help you. Then once they provide a response you reply nagatively towards it, saying you cannot do it or it doesn't work. Please play the game, provide us with correct details of what you are doing/have done and the percentage rate of potential positive solutions will increase accordingly; Thank you!

#5 User is offline   Outbreaker 

  • Member
  • PipPip
  • Group: Members
  • Posts: 195
  • Joined: 08-August 07

Posted 24 May 2010 - 12:56 PM

If i want to use the Startup folder in Startmenu i need to enable the $OEM$ option if i do this i will loss the ability to start the Recovery Console form the CD.

But i found a way to do this now that after Windows XP is completely started that means seeing the taskbar that a file will be then started.

Here is the addon that works with nLite and RVM Integrator that is what the addon dose:
Adding 3 file to the Windows XP installation recourse.
Adding a line to the TXTSETUP.SIF file that will start the file RUNONCE.INF on the first install process
The file RUNONCE.INF will then add this registry entry:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce]
"RUNONCE"="%SystemRoot%\Temp\RUNONCE.CMD"
Later the file RUNONCE.CMD will add this registry entry:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"SASROAS"="%SystemRoot%\Temp\SASROAS.CMD"
The file SASROAS.CMD will start if Windows XP is completely startedstarted and it will srarch all drivers from A to Z for the file "Auto Setup.cmd

This is the best i could do complicated but it works. ;)


[EDIT]
Removed the old Attachment Version v.0
[/EDIT]

This post has been edited by Outbreaker: 26 May 2010 - 07:12 PM


#6 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 24 May 2010 - 02:08 PM

For now I'm going to comment only on three things!
  • You do not need to use the $OEM$ structure in order to add to the StartUp Directory.
  • There are some errors in your batch files.
  • I really do not appreciate the fact that you took some of my exclusive code, (that which I'd already informed you was not available elsewhere), used it against my advice, ruined it, made it freely available and didn't even bother offering credit. (in a way I'm glad because you've spoiled my efforts so much I'd be embarrassed to have my name along side it.)


#7 User is offline   Outbreaker 

  • Member
  • PipPip
  • Group: Members
  • Posts: 195
  • Joined: 08-August 07

Posted 24 May 2010 - 07:19 PM

After locking at a IE8 addon i found out how to do it another way this should then work also for the StartUp Directory but a RunOnce registry entry will do the job also, if i have tested it and it works i will post back.

Would be nice if you could explain me what i did wrong in the batch file it's working without problem i can't fix a problem that i can't see :(
You have posted the scirpt here on a public forum so it's freely available :blink: if you would had included the credit in the script i would have include it also but i even don't include any credits for myself in any of my batch files. So dont get me wrong that im not thankful for you script. :(

This post has been edited by Outbreaker: 24 May 2010 - 07:19 PM


#8 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 24 May 2010 - 10:54 PM

Outbreaker, please be careful not to push my wrong buttons!

I produced in answer to a very specific problem you had a code snippet, this was completely my work and was exactly the solution you required. You have created a distributable script based around my code, and it's fair to say that you could not have done so without that code. You did not really credit me in the topic, which I ended up having to close because of your actions. Now you have the cheek to tell me that it was my responsibility to credit myself and then you expect me to further fix the rest of the code you've included!

#9 User is offline   HØLLØW 

  • Member
  • PipPip
  • Group: Members
  • Posts: 125
  • Joined: 01-March 07
  • OS:XP Pro x86
  • Country: Country Flag

Posted 25 May 2010 - 04:54 PM

View PostOutbreaker, on 24 May 2010 - 08:41 AM, said:

Yes i want to run the file only once and i can't use the Startup folder in Startmenu because i don't want to loss the Recovery Console option.


You just have to do an "XCOPY-Command" of your batch to the Startup-Folder in Startmenu and delete it afterwards if you want the script just to run once and not on every login...

This post has been edited by HØLLØW: 25 May 2010 - 04:54 PM


#10 User is offline   Outbreaker 

  • Member
  • PipPip
  • Group: Members
  • Posts: 195
  • Joined: 08-August 07

Posted 26 May 2010 - 07:02 PM

I try a lot of options to do this and it looks like the startup menu is the only option to do it so here is the v1.1 if same needs this also.

Credits: Yzöwl

Attached File(s)


This post has been edited by Outbreaker: 26 May 2010 - 07:09 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy