Solved

Moved Windows directory

Posted on 1997-05-01
5
119 Views
Last Modified: 2013-12-16
I'm looking for the best solution to the problems created by the command "C:\> MOVE \Windows \DummyDir" followed by a reboot.  (That was not the actual cause of my problem ... I don't know what the cause was, but the symptom appeared equivalent to that MOVE statement.)

I started by trying "C:\> MOVE \DummyDir\Windows \Windows" but that gave me some "access" error and wouldn't work.  So then I did "C:\> XCOPY/s \DummyDir\Windows \Windows".  That did the trick, but then I got registry errors.

I tried restoring the registry from disk (DA0 to DAT), then from tape backup, but with no luck.  So I ended up reloading Windows.  That didn't produce satisfactory results, so I reloaded the entire Windows directory from tape backup (which gave satisfactory results).

Can anyone think of a quicker solution or explain some of my  difficulties?

Jeff Wright
0
Comment
Question by:wright050197
  • 3
  • 2
5 Comments
 

Author Comment

by:wright050197
Comment Utility
Edited text of question
0
 
LVL 14

Accepted Solution

by:
smeebud earned 100 total points
Comment Utility
You can rename a directory using the MOVE command.
Specify the old directory name as the file you want
to move, and then specify the new directory name  
as the destination. You can change the directory
name, but you cannot move the directory to another
location in the directory tree.                    
For example, to rename a directory called NEW on drive C to OLD, type the    
following command: move c:\new c:\old                            
               ---------------------------
In your example you typed: C:\> MOVE \DummyDir\Windows \Windows  
Where it should have been:
C:\> MOVE C:\DUMMYDIR\WINDOWS C:\WINDOWS.

Then, because you were altering the WINDOWS hierarchy. The registry would not necessarily pick up that change. You would have to manually change apppaths and possibly messing up your whole Setup Key at:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]                        
                                                                           
0
 

Author Comment

by:wright050197
Comment Utility
So you're saying:
1. I used the MOVE command incorrectly.
2. The registry mess-up (caused by the Windows directory being
   moved) was inevitable.
3. The registry recovery is too complex to discuss.

Any ideas why the restore-DA0-to-DAT procedure (which I got from http://141.244.88.101/aw/win95FAQ/Arch.htm#Architecture), or the restore from backup tape (which supposedly had the registry as part of the backup) not work?
0
 
LVL 14

Expert Comment

by:smeebud
Comment Utility
write,
to question 1. Yes, the syntax was incorrect.
2. Inevetable, yes. As I said, "Then, because you were altering the WINDOWS hierarchy. The registry would not necessarily pick up that change. You would have to manually change *app paths* and
possibly messing up your path statements at:  
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths] OPEN your registry to app paths. you'll see what I mean by altering the hierarchy.
3. No, not to complex to discuss. guess i just left that part out. I don't know when you saved that paticular .dat file. if is was saved after the damage was done, restoring would do no good.
Here's a batch file I use If I mess something up, and know it, I immediately go to dos and run this(sos.bat)
@ECHO OFF
cd c:\windows
attrib -h -r -s system.dat
attrib -h -r -s system.da0
attrib -h -r -s user.dat
attrib -h -r -s user.da0
copy system.dat system.bak
copy user.dat user.bak
copy system.da0 system.dat
copy user.da0 user.dat
I have since found a far superior system file saver.
Go to: http://www.lynx.bc.ca/~orca/ and download WRP VER 3
tHIS A LITTLE LEAN AND MEAN systemfiles backup and restore.
I have it in my Start up dir so it comes up when i boot, takes all of 4 seconds to do. I tested it by messing up all my system files, including me registry. when to dos, type restore and Bingo, all back in original form. I highly recomed it.

if you need help,
e-me
bwil@erinet.com
0
 
LVL 14

Expert Comment

by:smeebud
Comment Utility
OH YEA;
Visit http://www.geocities.com/SiliconValley/Pines/2857/
if you want to take some time and learn about the registry.
DO NOT DOWDLOAD "SMALREG3.ZIP". If the directions are not followed to the T, it WILL corrupt your registry, Do D/L
"REGKEYS.ZIP". It's just a document that explains much about the reg
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Update 11/3/2014 - Although the below article will get you to relocate the WINSXS folder, Microsoft has finally released a utility to reduce the size of the WINSXS folder. For some reason, it's not that straightforward. It only works on Windows 2008…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now