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-02 02:38
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Please explain the code for detecting a CD-ROM drive? View 674 Replies 0
Original Poster Posted 2007-12-29 21:40 ·  中国 河北 邯郸 临漳县 电信
初级用户
Credits 30
Posts 12
Joined 2007-10-19 18:07
18-year member
UID 100183
Gender Male
Status Offline
1:if exist G:\nul.ext (echo disc present) else (echo no disc)
What does nul.ext mean here, and why can it be used for detection?
2:if exist \\?\CdRom0\* (echo OK) else (echo NO) what does \\?\CdRom0\* mean
Also, is it a CMD command? How do you use it?
Forum Jump: