Re: Desktop icon location - Registry
- Posted by Lucius L. Hilley III <Euphoria at unkmar.com> Sep 08, 2005
- 522 views
Greg Haberek wrote: > > > Depending on the OS. Win9x/ME for example. > > Use DOS based regedit command in a batch file during boot sequence > > before the GUI starts to load. > > > > WinXP - Good luck. Possible you similiar scheme by booting > > Safe mode with Command prompt. That mode doesn't load Explorer > > therefore doesn't load the Desktop or Icons. So, it might be > > possible to make the changes at that point. Another idea is to > > to have the command executed very early in the boot process. > > That would require a registry entry, possibly RunServices would > > do it. Surely a tag along at the VxD loading level would do it. > > But that would definately be a hack. You shouldn't be tagging > > code at the level. Too virus like. > > HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run > HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce > > Try popping an entry into either of these keys. 'Run' will run a > command every time the user logs in, while 'RunOnce' will run the > command once then delete it. > > ~Greg Entries in those locations usually allow explorer to load before they are executed. Therefore, overriding any changes you may be attempting. You must either make your changes: After Explorer has shutdown and saved the current desktop icon settings. OR Before Explorer gets a chance to read the desktop icon settings. Lucius L. Hilley III - Unkmar