Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Moved Windows directory

Posted on 1997-05-01
5
Medium Priority
?
131 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 200 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

926 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