fischer-michael@YALE.ARPA (Michael Fischer) (10/23/87)
Jim McCabe asks: > I'm writing a program where it is necessary for the user to > take out the disk that the program was loaded from and insert > a data disk. From this program, when I try to access a file > after swapping disks, it can find files just fine if they are > in the root directory, but subdirectories cause error -33 (at least > I think that's what error it was... haven't looked at it in > a month or so...) which means that the pathname isn't found > or whatever. I've noticed this problem, too. It seems to be a GEMDOS bug. One fix is to use Fsfirst with a path in the root directory to force GEMDOS to access the disk after the swap. Then you should be able to follow that by an Fopen for the file you really wanted. Note however that if you are not specifying the complete pathname (with a "\" immediately after the ":"), then you are asking for a file relative to the current working directory, which hasn't been resent. If this is your problem, then you also need to set the working directory after the disk swap. Hope this helps. --Mike Fischer <fischer@yale.arpa> -------