if exist "FOLDER\" echo FOLDER exist
if exist "FILE" echo FILE or FOLDER exist
if exist "FOLDER\nul" echo not use
if exist "FILE\." echo also FILE exist
if exist "FOLDER\" echo FOLDER exist
if exist "FILE" echo FILE or FOLDER exist
if exist "FOLDER\nul" echo not use
if exist "FILE\." echo also FILE exist
建立路徑與磁碟機代號之間的關聯。
(all user)
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices]
"Z:"="\\??\\C:\\Documents and Settings\\All Users\\Shared Documents"
(personal)
SUBST [drive1: [drive2:]path]
SUBST drive1: /D
drive1: 指定您要指派路徑的虛擬磁碟機。
[drive2:]path 指定您要指派給虛擬磁碟機的實際
磁碟機與路徑。
/D 刪除取代的 (虛擬) 磁碟機。
鍵入 SUBST 而不加任何參數,即可顯示目前虛擬磁碟機的清單。