| 1. |
Solve : DOS and the Recycle Bin? |
|
Answer» Patio.........help!! Graham - thanks for the reply. the three files were likely MSDOS.SYS, MSDOS.--- and MSDOS.SYD. As far as I am aware, only MSDOS.SYS is required to boot the computer into windows... if you have any of the three files remaining, you can copy them back into a new MSDOS.SYS (or MSDOS.---, or whatever file you deleted by accident). I don't know your skill level in DOS, but the copy command will suffice quite well: Code: [Select]COPY C:\MSDOS.SYS C:\MSDOS.--- of course, replace the first filename with one of the MSDOS.* files you haven't deleted, and the second name with the one you have deleted. If you've deleted all three- you can easily create a new one. in Windows 95 and up, MSDOS.SYS (and the backup copies MSDOS.--- and MSDOS.SYD) are simply text files used by the boot loader. I'll just transcribe the contents of the MSDOS.SYS file on my old laptop (circa 1996) assuming of course- it still boots. hasn't been used in the better part of a year. I've been meaning to clean it up anyway, so it's not out of the way at all alright- I've got the contents of the MSDOS.SYS file, you should be able to save this into a new MSDOS.SYS file (using the EDIT program on the target computer). If you're booting windows from a drive or folder other then C:\WINDOWS, you'll need to change the respective options. Code: [Select][Paths] WinDir=C:\WINDOWS WinBootDir=C:\WINDOWS HostWinBootDrv=C [Options] BootMulti=0 BootGUI=1 ; ;The following lines are required for compatibility with other programs. ;Do not remove them (MSDOS.SYS needs to be >1024 bytes). ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxe ;xxxxxxxxxxxxxxx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get you booting into the GUI again. Now that I think about it, you could have simply copied MSDOS.SYS from one of the other computers you've looked at to your ailing one. With all this in mind- can you start windows from the prompt it presents you by typing WIN ?Thanks Graham, I put the msdos file that you wrote out for me (thanks) onto a floppy (naming it "msdos.---") and then copied it into the ailing machine's c: drive. Then rebooted, but it still goes to the C:> prompt. Still woking with the floppy, I then change the name of that "msdos.--- " file to just "msdos.sys" and tried copy it over to the c: drive and was asked if I wanted to overwrite "msdos.sys"? I said yes, then was given : "access denied - c:msdos.sys" 0 file(s) copied Question: Shouldn't it have asked me if I wanted to overwrite "msdos.---" ?? I get the feeling that the .--- file extension is a wildcard of some sort? Using "Dir" command shows that the "msdos.---" file is there. Not msdos.sys or ANY other msdos files.... yet I know for a fact that there was an "msdos.sys" and a 3rd "msdos. " file in the root before this "event" occurred. Hidden files in play here? I next took a known good version of this msdos.sys file from another machine, as you suggested and copying it to the ailing machine's root... but my machine won't add another msdos file, it only wants to overwrite the existing, with the above referenced results. What is the syntax for deleting that msdos.--- file from the root directory? Thanks againIs there a full ver. (probably 6.2) installed on this machine ? ? If so put floppy #1 of MSDOS in and at the A; prompt type in sys C:\ and hit Enter...Quote from: AndyCountry on July 29, 2008, 02:27:30 PM Thanks Graham, That was my post... you can blame him if it doesn't work, though. Quote from: AndyCountry on July 29, 2008, 02:27:30 PM Thanks Graham,It wouldn't of asked you to overwrite MSDOS.---, since the file obviously didn't exist. No it is not a wildcard char, only ? and * are wildcard characters. MSDOS.--- is likely a system-created backup of MSDOS.SYS, MSDOS.SYD (my guess as to the third filename extension) is created GOD knows when, and isn't used to begin with... MSDOS.SYS is hidden, and will only show up with a dir switch: Code: [Select]dir C:\ /ah anyway- MSDOS.SYS is always hidden on drive C:, which makes me wonder how you deleted it in the first place. I don't see how that caused a problem. instead, you might have an easier time editing your existing MSDOS.SYS file, to check for the existence of the BOOTGUI option. booting from the C:\ drive into the command line and running EDIT MSDOS.SYS should enable you to view the current settings. If BOOTGUI=0, change it to 1, and your problem should be solved. Otherwise, we'll try replacing it with a known-good version (the one I provided, assuming your Windows dir is C:\WINDOWS). first, you'll need to make the MSDOS.SYS file on C:\ non hidden. It's also set to System, so we'll need to do it in one fell swoop, otherwise the attrib command will whine: Code: [Select]attrib C:\msdos.sys -s -h (I'm a bit rusty, but if it says "not resetting ...." just flip around the -s and -h in that command.) now that MSDOS.SYS is visible, you can rename it (say, MSDOS.OLD) and copy over the MSDOS.SYS file from the floppy. With any luck, that will work. Somehow your MSDOS.SYS file that is currently on your HD possesses the "BOOTGUI" option set to 0, or at least that is my guess. EDIT: patio's suggestion might help, if we forget that the machine is actually running windows 98SE which uses MSDOS.SYS for configuration data, as opposed to MS-DOS 6/6.2's MSDOS.SYS file that contains machine code. BC........many apologies for not noting you were the person responding to me. What is the emoticon for "very embarrassed"?? I thank you for your time and patience. I used your "attrib ......" command to allow me to see the hidden sys files when in DOS. However, I have forgotten most, if not all, DOS COMMANDS over the last 25 years (IBM AT) since I had to regularly use them, and when I went to rename the msdos.sys files, I was left scratching my head. I did eventually manage to rename both msdos files. I copied "your" msdos.sys code over to the root of the ailing machine and all is well now. An interesting aside.....your msdos file is over 1,600 bytes yet the one native to my machine contains only 9 bytes (";WIN98EBD")... both work, which is all that counts I guess. Strange. Thanks again BC_Programmer. You had wondered how I deleted this file in the first place? I always enable the OS to show hidden and sys files. Perhaps I should abandon that practice Quote from: AndyCountry on July 29, 2008, 05:09:13 PM the one you copied over was the MSDOS.SYS from your Emergency Boot Disk, thus the ";Win98EBD". Normally there is that buffer of x's so older programs won't get confused when they see a MSDOS.SYS that is smaller then 1024k, or something, not sure about the details... |
|