Need win.cnf!

August 2, 2009 at 02:55:59
Specs: Windows 98, Intel Celeron
This is apparently a common problem among win98 users, but it remains so because the solution is so inaccessable! I need a copy of win.cnf to replace my lost file of! I am using Windows 98 and I don't have the recovery disk.

The funny thing is, I know where the file is - I just can't access it anymore! It's stuck in my Recycle Bin, and when I try to use xcopy DC<numbers here> C:\windows at the command prompt, I get a "file not found" error. But it's still there!

I have been up for hours trying to fix this. Help!

See More: Need win.cnf!

Report •

August 2, 2009 at 08:02:41
"This is apparently a common problem among win98 users"

You mean it's common for win98 users to delete critical system files?

Why did you delete it in the 1st place? And why don't you have a Win98 disc? Did you try the DOS undelete command?

Here's win.cnf from my Win98SE CD:

Report •

August 2, 2009 at 12:40:44
Files moved to the recycle bin don't show their original name when viewed in dos. So if you try to copy a file from there using its original name you'll get the 'file not found' error.

Report •

August 2, 2009 at 20:27:40
I am unfamiliar with win98 critical files and I thought the .com files were spyware. I put them in the recycle bin, but that was all it took to do it. I've lost the recovery disk, otherwise this would have been easier.

I know the files in the recycle bin don't show the original name. On mine, is called DC1101. The command to copy it to c:\windows still doesn't work

Thanks for the download. I've copied the file from a floppy to c:\windows. The problem is now I can't seem to rename it using the commands that you've linked to. I type "ren c:\windows\win.cnf c:\windows\" and I get a message that says "Invalid parameter - c:\windows\"

Isn't this supposed to work? Is there something wrong with Windows now?!

Report •

Related Solutions

August 2, 2009 at 20:56:16
ren c:\windows\win.cnf

To copy it from the recycle bin you'd change to the 'recycled' directory since it's hidden. Then at the c:\recycled> prompt you'd type
copy c:\windows\

Report •

August 2, 2009 at 21:06:54
@ DAVEINCAPS: That did it! Thanks man, you are my savior! Damn, I would have never thought about that!

Actually, I would like to thank you all; this was a really panic-inducing event!

Let it be known to all, before fiddling with the Windows folder, look up each program online before deleting!

Perhaps now is the time to upgrade to XP on this clunker...

Report •

August 2, 2009 at 21:15:50
You're welcome. We're glad it worked out.

Report •

August 3, 2009 at 12:37:40
Same when on Win XP or any other OS. Don't delete any files unless you are certain what they are for or where they came from. Generally stick only to those which you put in yourself and let virus cleaner programs or proper uninstalls deal with the rest.

I've seen many file deleters on this forum who have learned the hard way LOL.

some other bloke...

Report •

August 3, 2009 at 20:30:31
If it is a clunker it probably won't run XP worth a hoot - you might be stuck with 9x!

DAVEINCAPS - the recycle bin doesn't behave as a normal folder. First the files in there don't really exist, they have not even been moved or removed from their original locations, they have just had their attributes set to deleted and then their renamed tokens added to a special hidden text file in the recycle bin that allows one to magically restore them from the recycle bin.

Restoring files from the recycle bin using the Windows right click option is the ONLY way to recover them from there and since the folder does not hold the actual file at all, DOS can not copy it from there as it could any real file.

Attributes used above is not quite the right way to word it. The sectors/clusters of the file are not marked as deleted but are they marked with a special byte denoting recycle bin useage. This allows the system to NOT overwrite them as a truly deleted culster would be, but only the recycle bin can access them. It's very complicated.

My only point here is that you can't copy files to or from the bin as you could any other folder - they don't really exist in there as files, they aren't moved in the first place.


Report •

August 3, 2009 at 21:47:00
Of course you can copy them with dos. I did try it to make sure before I posted.

I made a copy of on C:\ and renamed the original (just in case I was wrong). Then I moved the copy to the recycle bin via delete from the desktop. I rebooted and got the 'missing' error. I rebooted again to 'command prompt only' and copied that file from the recycle bin to the windows folder and renamed it Then I rebooted and 98 came up just fine.

Try it.

Report •

August 3, 2009 at 23:44:06
If I could hazard a guess as to why that works in dos, well, we see nice directory structures with sequential files in dos and windows but that doesn't reflect their physical location. The files are scattered all over the drive but the drive keeps track of their location and gives us the false impression they're all lined up one after the other.

Therefore it doesn't seem like a file would need to be physically moved in order to show up in another directory. The OS need only tell the drive that a particular file now should be in another directory. It's the drive and not the OS that keeps track of the physical location of the files.

So if the location of files on a drive resides with the drive and not the OS then any OS that can access the drive will be able to see and manipulate its files.

Since a file's physical location is irrelevent it doesn't matter if it's actually moved somewhere or if it's simply added to the directory structure of the recycle bin.

Report •

Ask Question