Windows - subst命令建立虛擬磁碟

來源:互聯網
上載者:User

標籤:qqdownload   documents   windows   磁碟機   程式   

650) this.width=650;" name="image_operate_93491334854262485" title="Windows <wbr>- <wbr>subst命令使用與說明" alt="Windows <wbr>- <wbr>subst命令使用與說明" src="http://rescdn.qqmail.com/zh_CN/htmledition/images/function/qm_open/ico_mailme_01.png" />

1. 命令程式所在路徑:

C:\WINDOWS\system32\subst.exe


2. 使用說明:

C:\Documents and Settings\Administrator>subst /?

將路徑與磁碟機代號關聯。


SUBST [drive1: [drive2:]path]

SUBST drive1: /D


 drive1:     指定要指派路徑的虛擬磁碟機。

 [drive2:]path  指定物理磁碟機和要指派給虛擬磁碟機的

         路徑。

 /D       刪除被替換的 (虛擬) 磁碟機。


不加任何參數鍵入 SUBST,可以顯示當前虛擬磁碟機的清單。


3. 使用舉例:

首先,建立一個指派到目標路徑的虛擬磁碟機:

C:\Documents and Settings\Administrator>subst Z: F:\QQDownload

然後,列出虛擬磁碟機清單:

C:\Documents and Settings\Administrator>subst

Z:\: => F:\QQDownload

最後,刪除被替換的虛擬磁碟機:

C:\Documents and Settings\Administrator>subst Z: /d

 

參考:

系統裡有一個命令就可以實現這個功能
最常用的方式是用subst命令,因為一般的電腦中都內建這樣的程式。下面是subst命令的協助:
SUBST [drive1: [drive2:]path]
SUBST drive1: /D
drive1: 指定要指派路徑的虛擬磁碟機。
[drive2:]path 指定物理磁碟機和要指派給虛擬磁碟機的路徑。
/D 刪除被替換的 (虛擬) 磁碟機。
不加任何參數鍵入 SUBST,可以顯示當前虛擬磁碟機的清單。
看明白了嗎?假如你要把C盤上的“abc”檔案夾設為虛擬硬碟,虛擬硬碟的盤符為Z,可以在命令提示字元下這樣輸入:
subst Z: c:\abc
這時候,你開啟我的電腦就可以建立的B盤了。
如果要刪除剛才建立的Z盤,則可以輸入:
subst Z: /d

Windows - subst命令建立虛擬磁碟

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.