posted
I need to reinstall a bunch of dll fileson a 98se machine. I am not sure how many, I have already done 7. The problem is my son destroyed my 98 disk. He's 18 months and death on Cds!
I found a computer with the windows file saved on the C drive, but everything is in CAB files. I saved the files on a CD and have been extracting the files like this in DOS.
d: cd \98_windows\win98se d:\98_winodows\win98se (this is the path to those CAB files. I then run the command: extract /a /l c:\windows\options\cabs base4.cab "dll name" That command is doing wonders of extractign the file and placing it in the right directory. BUT I HATE RETYPING IT EVERYSINGLE TIME.
For some reason after the extraction, the up arrow is not working for bringing back my last command. So I was wondering if I can make a batch file that will make my DOS look like this
posted
In Windows 98, there's no EASY way to pipe directory listings into a command.
That said, it IS possible to do so. It's also possible for you to create a text file containing just the filenames you need, and then pipe them into a batch file.
Specifically, you're going to do a FOR loop in the batchfile. Within that loop, you'll pipe each filename into the command string, execute the command, and repeat.
--------
Or, since you're probably going to have to type each .dll at least once ANYWAY, you can use swampjedi's clever shortcut.
Posts: 37449 | Registered: May 1999
| IP: Logged |
1) Open your text editor. 2) Type "extract /a /l c:\windows\options\cabs\base4.cab %1" 3) Save the open file as "x.bat" 4) Close your text editor. 5) From within the same directory as x.bat, type "x <dll name>" to unpack one .dll.
Posts: 37449 | Registered: May 1999
| IP: Logged |
I am looking for good study aids to practice batch files and understand some of these comments. So far I have found this site.
Posts: 2445 | Registered: Oct 2004
| IP: Logged |
1) Open your text editor. 2) Type "extract /a /l c:\windows\options\cabs\base4.cab %1" 3) Save the open file as "x.bat" 4) Close your text editor. 5) From within the same directory as x.bat, type "x <dll name>" to unpack one .dll.
AHHHHHHHhhh! Ok, that makes sense! *runs off to other computer to try this out!*
Posts: 2445 | Registered: Oct 2004
| IP: Logged |
quote:Tom's idea is better, but isn't exactly what you asked. Much more efficient. [Smile]
quote:That said, it IS possible to do so. It's also possible for you to create a text file containing just the filenames you need, and then pipe them into a batch file.
It sounds like a better way, but I have to do it like Swampjedi because I don't know all the files I need.
I installed hardware and it is asking for dll files one at a time. Windows98se wants me to put in the disk, but I don't have the disk, so I have to extract them one at a time. grr... But this advice is VERY helpful and I am off to try it now.
Posts: 2445 | Registered: Oct 2004
| IP: Logged |
posted
And for future reference, doskey is the utility that lets you use the up arrow to retrieve commands from history.
Posts: 1805 | Registered: Jun 1999
| IP: Logged |
posted
Wait a sec. You're doing this as part of a hardware install?
If so, why not -- when it tells you to insert the 98SE disk -- just browse to the folder that holds your install CABs? That should have exactly the same effect.
Posts: 37449 | Registered: May 1999
| IP: Logged |