Solved

Major goof with attrib...

Posted on 1998-11-30
7
405 Views
Last Modified: 2013-12-16
I was using NBTSTAT with it's various (-) options then, after reading an article on another subject, switched to my c:\windows directory and absent-mindly began using ATTRIB with its (-) options on the entire directory.  Oh dear!!!

Long lists of files scrolled by as I used the -h option.  More long lists scrolled by as I used the -s option.  I may have even used -r.  It was about this time time that I realized my error.  I was thinking DIR /A:H, etc...

How can I rebuild the proper file attributes in this directory?  I imagine I'll need to use a boot disk and restore my system files one at a time unless someone knows how to do this some other way.  Once the Win95B is up and running, I guess I'll have to rebuild file attributes for my apps as they complain about not finding this or that file.  Please make suggestions.

I need to restore this workstation asap.  Thanks...
0
Comment
Question by:ptpovo
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 3

Accepted Solution

by:
cumbo earned 200 total points
ID: 1759849
ptpovo,

The quickest and easiest method is to run setup from the Win95 CD. If setup gives you the option to reinstall or fix/replace missing/corrupted files choose fix/replace.

If no option is given choose re-install. You won't lose any applications.

The alternative is resetting the attribs. on each file one at a time or in groups *.dll, *.ini, etc. This requires that you know which file has which attribute. Not impossible but, extemely messy and time consuming.

Cumbo
0
 
LVL 1

Expert Comment

by:snowolfe
ID: 1759850
i personally wouldn't worry about it - just leave them be and make sure not to start playing with deltree
0
 
LVL 1

Expert Comment

by:snowolfe
ID: 1759851
i personally wouldn't worry about it - just leave them be and make sure not to start playing with deltree

0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:ptpovo
ID: 1759852
cumbo - I found a similarly configured workstation and typed ATTRIB>LPT1 in the c:\windows directory.  I used a boot disk to start up the workstation with the problem, logged in using a netx client and typed ATTRIB>LPT1 in the c:\windows directory.  What a mess I made. I chose the slow approach and compared the lists one file at a time making changes where necessary and I now have a my workstation back.

I had already tried the WIN95 setup routine from the flat file on the hard drive but was unable to get past the Product ID screen and I couldn't figure out how to dump the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId key using regedit in DOS mode.  Hmmm a good question for another post....

snowolfe - thanks for the advice...
0
 
LVL 3

Expert Comment

by:cumbo
ID: 1759853
ptpovo,

Glad you fixed the problem. Good idea to print the Attrib's and compare.
Slow going tho..When system is up & running you can copy your
product code from the "General" tab under the "System" icon in
Control Panel. Write it down in a safe place.

A handy place to keep reg numbers is in your Autoexec.bat file.
Edit the autoexec.bat file that reads: REM Win 95 Reg code
nnnnn-oem-nnnnnnn-nnnnn. Save the file and copy to a floppy.

Cumbo
0
 
LVL 2

Expert Comment

by:RayFrye
ID: 1759854
I currently run a single PC with multiple versions of Windows as a support system for a number of PC users.  To make my life easier I have turned off all the system, hidden and read-only attributes in the multiple windows directories and at the DOS level. (Basically, no +s +h or +r setting anywhere in the entire file system,) These attribute settings (or non-settings) do not cause me problems.

So, my suggestion is to leave the attributes alone and continue to run the system as is.
0
 

Author Comment

by:ptpovo
ID: 1759855
RayFrye, I didn't realize you could remove those attributes, particularly the system flag.  The problem I had was that windows wouldn't start.  As I later dicovered, numerous files had been inadvertently given a system flag - specifically win.com.  Windows complained that it couldn't find this file and refused to proceed.  So, in a nutshell, everything will work just fine with no attribute settings, but, if you choose to use them, be sure you use them properly...  Thanks for the tip.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

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