中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-19 04:11
47,814 topics / 349,908 posts / today 1 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Please explain the code for detecting a CD-ROM drive?
Printable Version  719 / 0
Floor1 handan Posted 2007-12-29 21:40
初级用户 Posts 12 Credits 30
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?
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023