MarcJ Posted August 18, 2004 Posted August 18, 2004 Hey everyone. I've ran into a small issue that I can't seem to figure out. I have a reg tweak and some commands that I need to run *after* the user is fully logged in. RunOnceEx is running too early for these and so is GuiRunOnce. MOVE /Y "%UserProfile%\Start Menu\Programs\Accessories\Entertainment" "%AllUsersProfile%\Start Menu\Programs\Accessories"MOVE /Y "%UserProfile%\Start Menu\Programs\*.lnk" "%AllUsersProfile%\Start Menu\Programs\"RD /S /Q "%UserProfile%\My Documents\My Pictures"RD /S /Q "%UserProfile%\My Documents\My Music"DEL /Q "%UserProfile%\SendTo\My Doc*.*"DEL /Q "%UserProfile%\Favorites\*.*"RD /S /Q "%UserProfile%\Favorites\Favorites"RD /S /Q "%UserProfile%\Favorites\Links"RD /S /Q %systemdrive%\Drivers\RD /S /Q %systemdrive%\Install\EXITWindows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar]"LinksFolderName"=""These can't be ran before the user logs in because the files aren't created until the UI is loaded fully.LinksFolderName is empty in the "Default User" profile but once the current user's (Administrator) gui loads, it's set to LinksFolderName = "Favorites". So, it needs to be set back to "". Any suggestions on getting these taken care of?
rdalling Posted August 18, 2004 Posted August 18, 2004 Add a 60 second pause (or longer)ping 127.0.0.1 -n 60 > nulHope it helpsR
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