Windows
通過命令提示符添加網路位置?
我想知道是否可以通過命令提示符添加網路位置?這不是可以使用
net use
命令實現的驅動器號映射頭腦。
以下是如何實現此目的的腳本:如何在網路上的芳鄰中創建快捷方式?
要使用它們:
- 將程式碼複製到記事本文件中
- 點擊文件菜單並選擇另存為
- 將文件名括在雙引號中,包括副檔名 (") 範例 “Network Place Scrript.vbs”
- 在文件類型中選擇所有文件
- 點擊保存按鈕
你可以使用
PUSHD
和POPD
命令C:\>PUSHD /? Stores the current directory for use by the POPD command, then changes to the specified directory. PUSHD [path | ..] path Specifies the directory to make the current directory. If Command Extensions are enabled the PUSHD command accepts network paths in addition to the normal drive letter and path. If a network path is specified, PUSHD will create a temporary drive letter that points to that specified network resource and then change the current drive and directory, using the newly defined drive letter. Temporary drive letters are allocated from Z: on down, using the first unused drive letter found. C:\> C:\> C:\>POPD /? Changes to the directory stored by the PUSHD command. POPD If Command Extensions are enabled the POPD command will delete any temporary drive letter created by PUSHD when you POPD that drive off the pushed directory stack. C:\>