a06lp Posted October 20, 2004 Share Posted October 20, 2004 Subject says it all:I want to run some cleanup processes right away, and some AFTER a reboot.if i have cleanup1.cmd, and cleanup2.cmd, how do i make sure that only cleanup1 runs now, and cleanup2 runs later?I am using WPI2.9 to call cleanup1, if that is any help... Link to comment Share on other sites More sharing options...
kyuuzo Posted October 20, 2004 Share Posted October 20, 2004 In cleanup1.cmd call a registry file which adds cleanup2.cmd to RunOnceEx. If you search the forum there is more info on this. Link to comment Share on other sites More sharing options...
a06lp Posted October 20, 2004 Author Share Posted October 20, 2004 could you be more specific?and how does the computer reconize the difference between the processes being called by this runonceex and the ones for next time? Link to comment Share on other sites More sharing options...
mazin Posted October 20, 2004 Share Posted October 20, 2004 A self-deleting startup.cmd (or whatever name) put in Startup folder should do the job.What's wrong with this simple idea? Link to comment Share on other sites More sharing options...
a06lp Posted October 20, 2004 Author Share Posted October 20, 2004 A self-deleting startup.cmd (or whatever name) put in Startup folder should do the job.What's wrong with this simple idea?because, for some reason, my commands won't delete my "pdvd" (powerdvd5) folder, and my "WPI" folder. I think because the programs are still in use.Therefore, I think I have to delete all the OEM stuff FOLLOWING the first reboot, as opposed to during first logon, after all installations, before first reboot.EDIT:FYI, here's my cleanup code (it deletes everything EXCEPT "pdvd" and "WPI"):RD /S /Q %systemdrive%\Install Link to comment Share on other sites More sharing options...
MCT Posted October 20, 2004 Share Posted October 20, 2004 its probly cuz they are in use (like 10 ppl have told in your last 3 topics for this same thing) Link to comment Share on other sites More sharing options...
kyuuzo Posted October 20, 2004 Share Posted October 20, 2004 Read near the end of this thread for my method.http://www.msfn.org/board/index.php?act=ST&f=70&t=29328 Link to comment Share on other sites More sharing options...
Lucius Snow Posted October 21, 2004 Share Posted October 21, 2004 At the end of my Cleanup1, i call Cleanup2 through the following command line :SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installation des logiciels et configuration de Windows" /fREG ADD %KEY%\101 /VE /D "Nettoyage de l'installation" /fREG ADD %KEY%\101 /V 1 /D "%systemdrive%\Config\cleanup2.cmd" /fIt's quite simple and it works fine. Link to comment Share on other sites More sharing options...
a06lp Posted October 21, 2004 Author Share Posted October 21, 2004 @Lucius Snow, kyuuzo:Thanks, it works great! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now