Board logo

标题: 看不懂这样的语句\\?\CdRom0\* ,论坛搜索过也没找到 [打印本页]

作者: xufree     时间: 2008-6-30 11:54    标题: 看不懂这样的语句\\?\CdRom0\* ,论坛搜索过也没找到

我是新人,在论坛置顶上看到 [推荐]批处理室经典帖子分类索引[20070608](求助前必看)里面一个关于如何在关机前自动弹出有光盘的光驱的帖子。里面有这样一条判断是否光驱里面有光盘语句,if exist \\?\CdRom0\* (echo OK) else (echo NO).  

关键是这段看不明白\\?\CdRom0\* , 这算是环境变量还是其它什么?dos下面有这样的用法?

先谢谢各位高手斑竹。
作者: xufree     时间: 2008-6-30 11:57
?和*我都知道他们的含义,关键是\\这样的用法,\\不是一般都在IE浏览器上进入内网某台计算机用的吗?比如\\192.168.1.20
作者: xufree     时间: 2008-6-30 15:37
没人知道吗?
作者: FQ     时间: 2008-6-30 16:41
http://www.cn-dos.net/forum/view ... ht=%2Belectronixtar
作者: xufree     时间: 2008-6-30 16:54
非常感谢楼上的 不过还有一个问题 mountvol 这命令是dos外部命令?在CMD命令速查手册里面找不到啊
作者: HAT     时间: 2008-6-30 17:37
你用的精简版的系统?

  Quote:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Test>mountvol /?
Creates, deletes, or lists a volume mount point.

MOUNTVOL [drive:]path VolumeName
MOUNTVOL [drive:]path /D
MOUNTVOL [drive:]path /L

    path        Specifies the existing NTFS directory where the mount
                point will reside.
    VolumeName  Specifies the volume name that is the target of the mount
                point.
    /D          Removes the volume mount point from the specified directory.
    /L          Lists the mounted volume name for the specified directory.

Possible values for VolumeName along with current mount points are:

    \\?\Volume{631af070-3095-11dd-9456-806d6172696f}\
        C:\

    \\?\Volume{631af071-3095-11dd-9456-806d6172696f}\
        D:\


作者: xufree     时间: 2008-6-30 20:28
谢谢楼上的朋友,我已找到了. 在windows的帮助里面.只是网上下载的CMD速查手册里面没有mountvol fsutil   这样的命令.