China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-03 00:58
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Question about whether SUBST can support a CD-ROM drive View 940 Replies 1
Original Poster Posted 2009-01-13 09:07 ·  中国 重庆 电信
初级用户
Credits 20
Posts 8
Joined 2006-11-13 03:26
19-year member
UID 70391
Gender Male
Status Offline
A program has to access specific files from drive C. After testing, I found that using SUBST to emulate the folder containing the program as drive C can solve the problem. It works fine with floppy disks and RAMDDSK virtual disks, but it fails only with a CD-ROM.

D:\DOSTOOL>subst c: d:\dostool
DOS 7.1 SUBST v7.10 (Revision 4.11.1492)
Copyright (c) 1989-2003 Datalight, Inc.

Path not found - d:\DOSTOOL

Here d: is the CD-ROM drive, and the folder d:\DOSTOOL really does exist.

Is there any solution or alternative workaround? Thanks!
Floor 2 Posted 2009-01-21 17:38 ·  中国 广东 深圳 电信
初级用户
Credits 48
Posts 17
Joined 2007-04-19 12:29
19-year member
UID 85742
Gender Male
Status Offline
My C drive is the system drive, so that drive letter is already in use. I can't test it with subst.
Try disabling the CD-ROM drive in Device Manager.
Forum Jump: