Solved

Moved Windows directory

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

832 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