我只知道DOS下有个命令可以随意将一个目录虚拟成一个盘符

解决方案 »

  1.   

    filedisk /mount 0 c:\temp.bcd 8M  M:
    format M: /fs:fat32
      

  2.   

    C:\>filedisk
    Usage:
    filedisk /mount  devicenumber filename [size[k|M]] driveletter
    filedisk /umount driveletterExample:
    filedisk /mount  0 c:\filedisk.img 8M f:
    filedisk /umount f:C:\>filedisk /mount 0 c:\filedisk.img 8M f:C:\>format /fs:fat f:
    The type of the file system is RAW.
    The new file system is FAT.WARNING, ALL DATA ON NON-REMOVABLE DISK
    DRIVE F: WILL BE LOST!
    Proceed with Format (Y/N)? y
    Verifying 8M
    Format complete.
    Volume label (11 characters, ENTER for none)? filedisk  8364032 bytes total disk space.
      8364032 bytes available on disk.     4096 bytes in each allocation unit.
         2042 allocation units available on disk.Volume Serial Number is 50B5-B099C:\>dir f:
     Volume in drive F is FILEDISK
     Volume Serial Number is 50B5-B099 Directory of F:
    File Not FoundC:\>chkdsk f:
    The type of the file system is FAT.
    Volume FILEDISK created 6/9/99 6:04 PM
    Volume Serial Number is 50B5-B099
    CHKDSK is verifying files and directories...
    File and directory verification completed.  8364032 bytes total disk space.
      8364032 bytes available on disk.     4096 bytes in each allocation unit.
         2042 total allocation units on disk.
         2042 allocation units available on disk.C:\>filedisk /umount f:c:\>rem Now use following prompt to mount filedisk next time.
    C:\>filedisk /mount 0 c:\filedisk.img f:
      

  3.   

    使用DOS命令subst,格式如下:
    subst 虚拟盘符 子目录路径
      

  4.   

    to 小星星()  大侠,命令在windows 2K下不能使用,我想做的是象现在大多数数码相机所使用的那种技术,好像要用到COM组件和名字空间,现在基本做好了,非常感谢各位