Computer Hope

Microsoft => Microsoft DOS => Topic started by: Hannix1969 on June 06, 2009, 09:39:04 AM

Title: usb and cd rom drivers in MS-DOS ???
Post by: Hannix1969 on June 06, 2009, 09:39:04 AM
OK now that i have a real copy of ms-dos on my old pc. I need to set up the drivers for the USB flash drive and the CD ROM. i have the drivers on the F: drive. I need help with the Autoexec.bat file and the config.sys file. i have read the Q&A on autoexec. and config. files. but im am still not sure about how to realy set them up ther are some exsampels that mostly show with windows, i dont have windows on it. So im left with some other quistons. like how meny devices can i use? is ther an order i need to make sure the dvices are listed.

Packard bell model #P160119601, the motherboard is Agna-6wmm7, it uses PC-100 ram 64 megs, hard drive is a WD Caviar 84AA (set with 4 partions C: D: E: F: all portions or about 2gig in size), The OS is  MS-DOS 6.22.  It has a floppy 3.5 and a DVD ROM.

Thank you for any help one can send my way.
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: Hannix1969 on June 06, 2009, 12:22:42 PM
Just a thought sence the drives im trying to set up are not external, i should not have to change my autoexec.com. just the config.sys. if im right on that?    ???
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: BC_Programmer on June 06, 2009, 12:38:49 PM
I'm not sure about the flash drives, but you can find a driver for CD-ROM/DVD-ROM drives here:


ftp://ftp.ehu.es/cidirb/2000/speedsys/oakcdrom.sys


This is the Driver I usually use when running DOS or windows 3.1.

you'll need to modify both config.sys and autoexec.bat.


config.sys. add this after DEVICE=HIMEM.SYS:
Code: [Select]
DEVICEHIGH=C:\DOS\OAKCDROM.SYS /D:OAKCD

autoexec.bat- plop this line at the bottom:

Code: [Select]
MSCDEX /D:OAKCD
(obviously I am assuming OAKCDROM.SYS was placed in the DOS directory).



Flash drives, I'm afraid, I've never used successfully via DOS.
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: Hannix1969 on June 06, 2009, 11:17:45 PM
this did not work i droped the code where you asked and this is the code i put in
 
Code: [Select]
DEVICEHIGH=F:\OAKCDROM.SYS /G:OAKCD
the driver is on my f: drive and i want to make the cdrom drive G:

i also added this to my autoexec.bat
Code: [Select]
MSCDEX /G:OAKCD
But i am thinking that it is my config sys that is not right. Here is what it looks like after i add the code
Code: [Select]
DEVICE=C:\DOS\SETVER.EXE
DEVICE=C:\DOS\HIMEM.SYS
DEVICEHIGH=F:\OAKCDROM.SYS /G:OAKCD
DOS=HIGH
COUNTRY=044,,C:\DOS\COUNTRY.SYS
DEVICE=C:\DOS\DISPLAY.SYS CON=(EGA,,1)
FILES=30

Now i have seen some other code with a umd after the dos=high  ???
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: Hannix1969 on June 06, 2009, 11:44:51 PM
ok i am realy starting to fell dum now. i wen back and checked my config.sys and the reason it did not work is that i had missed spelled DEVICEHIGH i had spelled it DEVISEHIGH. :o

So now that i have fixed that. The driver is loading but i get
"Illegal option 'g'
usage: MSCDEX [/E/K/S/V] [/D:driver> ... ] [/L:<letter>] [/M:<buffers>]"

any thoughts? becouse i found this post on a defrent site i will just post the content as a quote
Quote
I finally got it to work!! I have the following files on my boot disk:

himem.sys
ramrd.sys
usbaspi.sys
di1000dd.sys

And my config.sys is as follows:

dos=high, umb
lastdrive=z
device=himem.sys
device=ramfd.sys
devicehigh=usbaspi.sys /w /v
devicehigh=di1000dd.sys /dG

The file just above assigns my PNY 128MB thumb drive to the G: drive, and I can then access it through DOS. I don't have anything in my autoexec.bat file (don't really need it since I'm not accessing an external cd-rom.

will adding the lastdrive=z line in my config.sys  fix it
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: Hannix1969 on June 07, 2009, 02:02:36 AM
well i have tried a few things.  just putting the lastdrive=z dose nothing. lol  I even tried put all of the code from the above post in. and though it did install the usb driver.  it did not find my device. i still do not get drive letters for my cd rom. ??? ??? ??? the driver for the CD ROM loads but with no drive letter i still can not access it.
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: BC_Programmer on June 07, 2009, 08:58:29 AM
you cannot change the /D:OAKCD to /G:, since /D stands for "devicename" which allows MSCDEX to find it.

However, if you want to give it a letter, simply change the mscdex line:

Code: [Select]
MSCDEX /D:OAKCD /L:F

you can find more switches for MSCDEX here:

http://support.microsoft.com/kb/87165




Also- I'll add that this is only for the CD-ROM, since I haven't really done much more then dabble with USB drives in DOS. However if you can acquire the files the other poster refers to you can get your Flash drive working as well.
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: Hannix1969 on June 07, 2009, 12:45:18 PM
Thank you that helped alot. i now have a working cd rom still working on the usb though.  when i do ge the usb up and running i will be sure to post it here.
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: BC_Programmer on June 07, 2009, 12:47:10 PM
Thank you that helped alot. i now have a working cd rom still working on the usb though.  when i do ge the usb up and running i will be sure to post it here.

Your welcome, and good luck! I will be curious to hear how it is accomplished!  :)
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: patio on June 07, 2009, 04:54:23 PM
http://www.georgpotthast.de/usb/ (http://www.georgpotthast.de/usb/)
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: BC_Programmer on June 07, 2009, 07:14:14 PM
oh you, spoiling the thrill of the chase!  ;D
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: patio on June 07, 2009, 07:27:53 PM
Sorry BC...won't happen again anytime soon.....
Heck you gave up the OakRom drivers ! !
That was considered the Motherlode back in the Day...

          ;D
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: BC_Programmer on June 07, 2009, 07:33:04 PM
Fair enough! Why, I often see people taking the CD-ROM drivers from some random boot-up disk, and it's that horrible contraption implemented by win98! I mean, how many drivers do you need for a CD-ROM drive?

If the manufacturer doesn't have a DOS driver (my samsung DVD burner came with DOS drivers) I'll use oakcdrom.
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: Hannix1969 on June 15, 2009, 10:08:20 AM
LOL thank you Patio i had almost given up when i came back here to check the post. i had tried many other drivers.  and was even able to get the device to show up in dos but still not able to get in to them. i have down loaded the zip from the site you sagested.  hope to try it out tonight.
BC i personal think that you and Patio should be able to add thouse two items to the Totorals. I think it would be a great help to people like me.
 thank you both i have learned allot from all of this. and i can tell i have a lot more to learn. ill let you know how it works for me Patio and thanks again.
Title: Re: usb and cd rom drivers in MS-DOS ???
Post by: Hannix1969 on June 16, 2009, 02:36:44 AM
lol OK when i start Dosusb program it finds my usb ports.  i edited my config.sys to load the driver
Code: [Select]
DEVICE=C:\DOS\USBDISK.SYS i restarted my PC. when it restarts it loads the usb thumb drive to a point that it finds but it says you must start dosusb first.

 how do i start dosusb before config.sys loads the driver? or did i do a me and leave out some code that should be in there? do i need to put a line of code in my autoexec.bat as well like i did with the cdrom?     i did try the devload app that came with it but I am lost on how to use devload. 

Well i did say i would let you know how it went. and as you can see i have made a mess of it lol