1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Long rambling about Register Editing

Discussion in 'Legacy Windows' started by Christer, 2003/04/15.

Thread Status:
Not open for further replies.
  1. 2003/04/15
    Christer

    Christer Geek Member Staff Thread Starter

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    Hello all!

    I have been fooling around with the registry in an old LapTop with Win98, trying to move certain folders, such as Cookies, Favorites, History and Recent, from the system partition ( "C: ") to a different partition ( "D: ").

    The Keys that I´ve been messing around with:

    HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ Current Version \ Explorer \ Shell Folders and \ User Shell Folders

    In Shell Folders, I changed the path from C:\Windows\Cookies to D:\Windows\Cookies and exited RegEdit.

    In Explorer, I created D:\Windows and tried to move the original folder to the new location by right-clicking and dragging, then clicking "Move Here" but index.dat couldn´t be moved.
    The result was that the original folder remained in its place and a new one, without index.dat, was created in D:\Windows.

    After reboot, the value had been reset to the original path and index.dat in the original folder had been updated, nothing happened in the new folder.

    Next, in User Shell Folders, I created a new String Value, named it Cookies and the value D:\Windows\Cookies. Since my last experiment the folder already existed on D: so after exiting RegEdit I rebooted.

    When up and running, the registry was examined and the value in Shell Folders had been changed to the same value as created in User Shell Folders.
    In Explorer, index.dat in the original folder had not been updated and the folder could, after a slight protest from Windows, be deleted. Index.dat in the new folder had been updated.

    I rebooted a second time and everyting was running well.

    To test, I deleted the String Value, created by me in User Shell Folders, rebooted and was taken back to square one with the value in Shell Folders changed back to the original path and the Cookies-folder in C:\Windows had been recreated.

    Now to the question: Is it safe to, in this way, force upon Windows a different location of a folder that it really doesn´t want to you to move?

    By the way, I started by moving Favorites and that was easy since it contains no index.dat. I picked up the general directions on how to do it from the web but those articles didn´t take index.dat in consideration.

    Thanks for Your time,
    Christer
     
    Last edited: 2003/04/15
  2. 2003/04/15
    BillyBob Lifetime Subscription

    BillyBob Inactive

    Joined:
    2002/01/07
    Messages:
    6,048
    Likes Received:
    0
    First off. Creating a folder named D:\Windows may not be a good idea. It can ( and has ) cause(ed) problems for software installs.

    Cookies and the other things you mention I have never tried to move as there is nothing in them worth saving on a reinstall of Windows anyway.

    But the Favorites I just created a folder on E: named Favorites. Moved by Draging-n-dropping the CONTENTS ONLY of the C:\Windows\Favorites into it.

    Then did a regedit/find for favorites and used F3 to make sure I get them all, and made sure they pointed to the new loacation. Then deleted the C:\Windows\Favorites folder.

    As far as the reg Keys go, just changing one key may not do the job as there are several for each.

    I did the same with My Documents. This is another one that I only consider to contain anything worth saving.

    I also consider the Start Menu worth at least keeping a copy of on another partition.

    And if a Clean re-install of Windows is required all you need to do is run a quick regedit and change references for Favorites and My Doc and you are back in business.

    BillyBob
     

  3. to hide this advert.

  4. 2003/04/15
    merlin

    merlin Inactive

    Joined:
    2003/01/07
    Messages:
    1,111
    Likes Received:
    0
    I do not understand why you want to do this.
    Are you having problems with the existing set-up ?
    What advantages are you expecting from changing these folder locations ?
    regards
     
  5. 2003/04/15
    Christer

    Christer Geek Member Staff Thread Starter

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    Hi BillyBob!

    I understand that naming the folder "D:\Windows" is a bad idea, "D:\Moved Folders" might be better. They could be on D: as separate folders too, I just had an idea of keeping them in one main folder.

    Folders that I really want to move are My Documents, Address Book, Outlook Express (the folder containing e-mail folders and e-mail rules, not the application itself) and Favorites.
    These are the folders with a contents of value to the user.

    My Documents can be moved in the folder properties (right-clicking the icon)
    Temporary Internet Files can be moved in the same way as My Documents (right-clicking the IE-icon)
    Favorites can not be moved in a similar manner to the above but in Explorer by right-clicking the folder and drag-drop in the desired location finishing by selecting Move Here.

    In the Registry, these three folders are the only ones in User Shell Folders and checking the respective String Value reveals that the path has been updated, reflecting the changes. I have yet to check all the other places "¦â€¦

    Hi merlin!

    Moving the TIF folder should reduce fragmentation of the system partition and that´s what made me think about moving the other "scrap folders" (Cookies, History, Recent etc.) too. This might not be worthwhile though.

    Now I´m going to fiddle with the Address Book and Outlook Express folders "¦â€¦

    Regards,
    Christer

    By the way, this is also an experiment to see just how foolish one can be without getting punished ...... :D ......
     
  6. 2003/04/15
    BillyBob Lifetime Subscription

    BillyBob Inactive

    Joined:
    2002/01/07
    Messages:
    6,048
    Likes Received:
    0
    Preservation Of Data is the advantage to moving My Documents and Favorites to another partiton so that they do not get lost if a format is required.

    A good many programs store stuff in My Documents. Or a folder like My Pictures within same.

    And Favorites saves a lot of searching and rebuilding. And the contents of Favorites can be copied back into any version of Windows.

    I am not 100% sure but I think My Docs is the same.

    Losing stuff on a re-format is the one MAIN reason I dumped Outlook Express and its dumb Windows address Book ( years ago ) and went to an e-mail that stores stuff all within its own folder(s) and is on another partition so it does not get lost either.

    Of course if you only have one partiton then my ideas are useless unless you transfer the contents of said folders to a CD before formating. Which BTW. I do anyway.

    BillyBob
     
  7. 2003/04/15
    reboot

    reboot Inactive

    Joined:
    2002/01/07
    Messages:
    831
    Likes Received:
    0
    I would just drag and drop the entire My Documents folder and the c:\windows favorites folder somewhere safe.
    Get a hard copy of any seriously important email, and rid yourself of Outhouse Express.
    If you do a search in the registry for c:\My Documents, you'll find a few keys that have "Default" for installation path, and/or download path. You can change those to whatever path you want. (I don't have a win98 machine handy to check with, sorry).
     
  8. 2003/04/15
    BillyBob Lifetime Subscription

    BillyBob Inactive

    Joined:
    2002/01/07
    Messages:
    6,048
    Likes Received:
    0
    That is true. BUT, in turn it fragments the other partition.

    The better way ( I think and have done and am working on again ) it to create a partiton of app 500meg.

    Then put both the Swap File and the TIF and nothing else on it and then forget both.

    As an added thought. That would also be a good place for My Documents and Favorites too.

    I myself would not try any such thing with OE. Well actually I can't any way because it is not on my machine(s).

    BillyBob
     
    Last edited: 2003/04/15
  9. 2003/04/15
    Christer

    Christer Geek Member Staff Thread Starter

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    BillyBob,

    I agree on all points but one:

    I´m considering a fourth partition, rather small but dedicated to temps and other trash such as Print Spooler and CD-Burner cache. This would make it separate from the important stuff.

    I´ve checked the Registry for all entries concerning the above three folders.
    All paths but one had been changed to the new one. The exception was for the Temporary Internet Folder.

    HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ Current Version \ Internet Settings \ 5.0 \ Cache \ Content still pointed to the original location.
    Strange since ...... \ Internet Settings \ Cache \ Paths were pointing to the new location for all of the subfolders.

    So, BillyBob, You were right to scan the Registry for the old path!

    Reboot,

    I did a search for C:\MY Documents and for C:\Mina Dokument (in swedish) but found nothing of what You indicated. Maybe I didn´t understand what You mean?

    Christer
     
  10. 2003/04/15
    BillyBob Lifetime Subscription

    BillyBob Inactive

    Joined:
    2002/01/07
    Messages:
    6,048
    Likes Received:
    0
    You have got me confused now :)

    When I do a reg search I do not include any drive letter. ( for any search ) It may miss some that way.

    I just make sure I am at the beginning of the reg, select find and enter " my doc. " ( without quotes of course ). That will find any and all references to My Documents. Whether it be for Windows use or any software that may use it for storage.

    Using C:\My Doc will only find the entries that point to C:

    If I were looking for some thing such as Favorites , that is the word I would type. Again leaving off the drive letter.

    For TIF I would use " temporary int

    And just make sure march whole string is NOT checked

    Also something VERY important when reg searching.

    When doing a reg search it is a MUST that you be at the BEGINNING of the reg. Otherwise it will only search forward from the point you are at.

    Also if you find and modify the first key up you may find some later that are already changed. But you may also find some that are not.

    I mentioned putting My Docs and Favorites and the extra drive just for safe keeping so they do not get lost on a loss of the OS.

    BillyBob

    PS
    I hope you make sure that the RB00X.CAB ( reg backups ) are being made before messing with the reg. And when you do get the reg where you want it and all seems to be OK, make new ones.

    BB
     
  11. 2003/04/15
    Christer

    Christer Geek Member Staff Thread Starter

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    BillyBob,

    Your quote is of my comment to reboot, whos guiding I was following.

    I´ll do a new search without the drive letter and see what I find.

    I know that the search has to be brought back to the beginning of the Registry but thanks anyway.

    I exported the Registry from within RegEdit. That copy resides in My Documents, on D: ...... :D ......

    If I mess things up, can I boot from a Win98 Start Disk, then change to D:\My Documents and type 030415-1 (the file name) and hit enter or do I have to do that from within Windows?

    Christer

    By the way, ...... I´m :cool: ...... since the LapTop was empty and I installed Win98 just to learn a few things about the Registry!
     
  12. 2003/04/15
    BillyBob Lifetime Subscription

    BillyBob Inactive

    Joined:
    2002/01/07
    Messages:
    6,048
    Likes Received:
    0
    That is no where near as dependable as the RB00X.CAB files that Windows itself makes.

    IF SCANREGISTRY is in the satartup sequence. AND Windows is restarted at least once per calendar day.

    If need be then you can boot to the F8 Menu at boot up and type SCANREG /RESTORE.

    Exporting/importing DOES NOT REMOVE any bad entries.

    Scanreg /restore REPLACES all four files ( completely ) using one of the RB00X,CAB files that you may choose. Those are ZEROS not Os in the file name )

    The four files are;

    System.dat
    User.dat
    System.ini
    Win.ini.

    All four files must be kept syncronized. You may not realize it but changes you make to the reg * MAY * be reflected in the System.ini. I know for a fact that it works the other way around.

    Also some software may put stuff in the system or win.ini.

    Scanreg /restore can also be run for a SUD bootup.

    At the A:\ prompt type C:\Windows\Command\Scanreg /restore.

    I myself have scanreg.exe on the SUD.

    BillyBob
     
    Last edited: 2003/04/15
  13. 2003/04/15
    reboot

    reboot Inactive

    Joined:
    2002/01/07
    Messages:
    831
    Likes Received:
    0
    The "My Documents" folder is there, and there are numerous references to it in the registry.
    Look in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    To restore that bit of registry (your 030415-1.reg) you will have to be in windows, even Safe Mode will work though, then just double click it.
     
  14. 2003/04/15
    Christer

    Christer Geek Member Staff Thread Starter

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    BillyBob,

    I had rb000.cab which may have been created during the installation or when I exported the Registry, I don´t know which.

    I went to a DOS-prompt and run scanreg, was told that it had already been backed up today but I did it again. Now I have rb001.cab too.

    They are both approx. 600 kB whereas the exported 030415-1 is approx. 2,800 kB.

    I´ve searched for the abbreviation SUD on the web but no luck.
    You have to tell me what that means!


    reboot,

    I did a search for Mina Dokument (My Documents in swedish) and found a total of seven entries, in among other places where You specified.

    Thanks for Your help,
    Christer
     
  15. 2003/04/15
    BillyBob Lifetime Subscription

    BillyBob Inactive

    Joined:
    2002/01/07
    Messages:
    6,048
    Likes Received:
    0
    I do no think you will find that in the reg.

    SUD= Startup Disk.

    Alias Windows Startup Disk.

    DOS Boot Disk.

    Or in Me I guess they did not like SUD so they changed it to Emergency Boot Disk or some other stupid thing.

    I gotta finish cooking dinner right now but will be back later on a way to handle the RB00X.cab files.

    BillyBob
     
  16. 2003/04/15
    BillyBob Lifetime Subscription

    BillyBob Inactive

    Joined:
    2002/01/07
    Messages:
    6,048
    Likes Received:
    0
    Handling the Reg backup RB00X.CAB files.

    If scanregisrty is loading at boot up there should be 5 rb00x.cab files in the C:\Windows\Sysbckup folder. That is if at least Windows has been restarted at least once per day. Only one per day will be made.


    Running scanregw from within Windows will allow you to make one also.But this is not the one you want. It will come up with A message NOT STARTED ( has not been used to boot windows )when scanreg /restore is run.

    Now you wish to make changes ( edit, modify or whatever ) to the registry.

    Make sure that scanregistry is shown as loading in msconfig.

    Go to the C:\windows\sysbckup folder and DELETE all RB00X.CAB files.

    Restart Windows.

    Recheck the folder mentioned and make sure there is a new file there. If not then find out why not before going any further.

    If one is there then great.

    Now go do your reg work. Your work turns out bad. Either boot to the F8 menu or the SUD ( startup disk ) and run Scanreg /restore.

    You will only have one selection and you will know that it is a good one because Windows was using it. And your reg ( all four files ) are back where you started.

    I will suggest here that you test this before depending on it fully. I have not had it fail. But there is always a first time.

    Scanregistry and scanreg /restore are the best thing Microsoft ever did for Win98.

    No need to go to the DOS Prompt. Just type scanregw in the Start/run line.

    BillyBob
     
    Last edited: 2003/04/15
  17. 2003/04/15
    Christer

    Christer Geek Member Staff Thread Starter

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    BillyBob,
    thanks for Your kind advice!

    I´ll have a look tomorrow (it´s past midnight here) and will get back to You!

    Christer

    Edited: Missing the meaning of SUD must be down to the late hour, don´t You think ...... :eek: ......
     
    Last edited: 2003/04/15
  18. 2003/04/15
    markp62

    markp62 Geek Member Alumni

    Joined:
    2002/05/01
    Messages:
    4,012
    Likes Received:
    16
    Christer
    Go here and get the Windows Registry Guide 2002 download for free. It has a lot of info about what you are trying to do.
     
  19. 2003/04/15
    BillyBob Lifetime Subscription

    BillyBob Inactive

    Joined:
    2002/01/07
    Messages:
    6,048
    Likes Received:
    0
    The below mis-leading info is taken from the Registry Guide that markp62 ponted to.

    And this is in no way saying that markp62 is in any way at fault for the bad info.

    And yes, I deliberately went looking for it as I was almost sure I had seen this before.

    Microsoft Windows 98 automatically creates a backup copy of the registry every time Windows starts, in addition to this you can manually create a backup using the Registry Checker utility by running SCANREGW.EXE from Start | Run menu

    That is as far from the truth as anything could be. It only makes ONE backup per Calander Day on a Windows restart. And by default it will make five and then start replacing the oldest.

    And it will only do this IF we have not stopped scanregistry from Loading at startup.

    Unless ( as I stated before ) you delete all of the RB00X.cab files. Then it will make a new one.

    If I am wrong, then I have been wrong ever since two days after Win98 came onto the Retail Market. Due to the help from a Friend.

    If I am wrong then how come I only have four files dated 4-12 thru 4-15. and I have restarted windows at least SIX ( 6 ) times today alone. ( removing and/or adding software or updates )

    However the scanregw part is OK. But as I said in an earlier reply it will give you a message about Not Started when scanreg /restore is used. Then the users has to guess whether it is OK to use or not.

    And I also saw no mention anywhere of the Win.ini which is also a configuration file used by Windows. I believe the Win.ini is mostly for compatability. But it is needed.

    I believe markp62 somewhat agreed with same in another post.

    Win.ini was the thread I believe.

    BillyBob
     
    Last edited: 2003/04/15
  20. 2003/04/15
    markp62

    markp62 Geek Member Alumni

    Joined:
    2002/05/01
    Messages:
    4,012
    Likes Received:
    16
    BillyBob is absolutely correct on that. I checked my installed Winguides, and it is exactly as he posted.
    Hmm, making me wonder if I should check more on that chm file.
    If Win98 did make a backup every time it booted, we just as well have the old 95 registry restore method. Most of us know just how reliable that was, like a $2 adjustable wrench. Maybe it'll do you some good, but a busted knuckle was almost guaranteed.
     
  21. 2003/04/16
    Christer

    Christer Geek Member Staff Thread Starter

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    BillyBob,

    ScanRegistry is ticked (default) in msconfig-autorun.
    I´ve formatted and reinstalled Win98, the first rb*.cab was created on the first boot when the clock had passed midnight (new day) not on any of the boots during the day I installed Win98.

    I´ve found another folder that can be moved from within properties or tools menu, in addition to My documents and TIF the storage location for E-mails can be selected from within OE.
    Changing that location produced the same changes to the registry that I had manually carried out.
    Maybe I have a future ...... :eek: ...... as a professional Windows Destroyer?

    markp62,

    I´ll download that guide and have a look.
    I´d like to move other "scrap "-folders, such as msdownld.tmp, as well to a dedicated "scrap "-partition.

    Thanks to all,
    Christer
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.