Solved

Moved Windows directory

Posted on 1997-05-01
5
120 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Laptop recommendation for CPA accountant 8 73
laptop estate analysis 5 63
forgot pst password 2 40
Windows 10 Blue Screen of Death Minidump analysis request 9 56
A few months ago I had an issue with LaserJet 1020 printer which was installed to XP and Windows 7.  It was installed to XP and working, but when I tried to connect from a Windows 7 PC, it would attempt connection and then fail.  Sometimes the Spool…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

920 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

16 Experts available now in Live!

Get 1:1 Help Now