Solved

Moved Windows directory

Posted on 1997-05-01
5
127 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:wright050197
ID: 1745678
Edited text of question
0
 
LVL 14

Accepted Solution

by:
smeebud earned 100 total points
ID: 1745679
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
ID: 1745680
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
ID: 1745681
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
ID: 1745682
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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

635 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