The Invalid function message

November 30, 2019 at 11:42:19
Specs: MS-DOS 6.22, 256MB DDR1
Hello

I've set up a machine running original MS-DOS 6.22. When I try to make my CD ROM drive work it's ok but trying to list files on a CD with "dir" command brings the "Invalid function" message.
The strange thing is when I use MS-DOS 6.22 bootdisk with the same drivers then everything is alright and I can access this drive.


See More: The Invalid function message

Reply ↓  Report •

#1
November 30, 2019 at 12:24:53
I'm no expert so all I can do is help you diagnose the problem.

Are you "in" the CD-ROM when you give the "dir" command?

Do any other commands work, like "attrib"?

Could it just be a problem with the path to the command directory?

-- Jeff, in Minneapolis


Reply ↓  Report •

#2
November 30, 2019 at 13:03:28
Yes, the current drive is D:\>
dir command displays "Invalid function"
attrib command displays "File not found - *.*"
Other commands work.

message edited by infiniteness84


Reply ↓  Report •

#3
November 30, 2019 at 14:18:55
Does this happen with all known good cd disks? Post back config.sys and autoexec.bat on the hard drive--not on the bootdisk.

message edited by DAVEINCAPS


Reply ↓  Report •

Related Solutions

#4
November 30, 2019 at 14:57:28
What driver do you have for the CD-ROM? And what type drive is it (IDE, SCSI, old proprietary Creative)?

"Channeling the spirit of jboy..."


Reply ↓  Report •

#5
November 30, 2019 at 15:16:58
@DAVEINCAPS
Yes it happens with every single cd or dvd that work on bootable diskette.
Here are my autoexec.bat and config.sys files:
<img src="https://files.tinypic.pl/i/00993/pc3ehln64s1r_t.jpg" border=0>
<img src="https://files.tinypic.pl/i/00993/83ur9nd2cawt_t.jpg" border=0>

@T-R-A
It's some LG DVD on IDE, drivers shown in pictures.


Reply ↓  Report •

#6
November 30, 2019 at 15:45:58
"It's some LG DVD on IDE, drivers shown in pictures."

Don't know how well a DVD drive will work in MS-DOS, but apparently it can be done (to some extent):

https://www.vogons.org/viewtopic.ph...

I'd personally see if I couldn't just find a standard CD-ROM drive and use some generic drivers.

"Channeling the spirit of jboy..."


Reply ↓  Report •

#7
November 30, 2019 at 22:30:13
The bootdisk uses the same cd1.sys as its cdrom driver? If not use the bootdisk driver instead of cd1.sys and edit config.sys accordingly.

In autoexec.bat you might try moving the mscdex line to the first position instead of the last and see if that makes a difference.

Also you can load a dos mouse driver in autoexec.bat to get mouse support.

message edited by DAVEINCAPS


Reply ↓  Report •

#8
December 2, 2019 at 10:20:09
@T-R-A
There's no need to go for a standard CD-ROM drive while this one which I have works but not on my HDD system.

@DAVEINCAPS
Yes, the bootdisk uses the same cd1.sys as its cdrom driver.
Moving the mscdex line to the first position instead of the last one doesn't help, I've done it before to check.

message edited by infiniteness84


Reply ↓  Report •

#9
December 2, 2019 at 19:38:46
That's an odd one. Try copying config.sys and autoexec.bat from the bootdisk to the HD and using that. If that doesn't work try making a basic config.sys and autoexec.bat that just loads the driver and mscdex. If that doesn't work try the oak cdrom driver from a 98 bootdisk.

Make sure the jumpers are correct on both if the DVD drive is slaved to the HD. Also try connecting it to the second IDE port.


Reply ↓  Report •

#10
December 3, 2019 at 07:57:54
So I decided to install MS-DOS once again and it works now but:
1. Only if I never add LH or DEVICEHIGH before drivers, otherwise it won't work even if I remove it later which is not understandable for me at all.
2. Without LH and DEVICEHIGH some programs don't work because they're too big to fit into memory.

message edited by infiniteness84


Reply ↓  Report •

#11
December 3, 2019 at 13:07:18
I guess you used memmaker to configure high memory for config.sys and autoexec.bat? It's not perfect. There are others, QEMM for one, but I'm not sure if they're any better. Some info here may help:

https://www.computerhope.com/ac.htm

You may have to play around with 'load high' to find the best configuration. It may only be one entry in config.sys or autoexec.bat that's causing the problem.

See if you can find a cd driver with a smaller file size than cd1.sys. I've used vide-cdd.sys. I think it's a fairly small file. There's nothing special about cd1.sys, cd2.sys, etc. I think they're just renamed drivers someone used to make their own bootdisk.


Reply ↓  Report •

Ask Question