如何将驱动器号映射到PowerShell中的本地路径?

Bal*_*tar 4 powershell

在PowerShell中,是否可以将驱动器号映射到本地路径?

所以例如map x:\toc:\myfolder1\myfolder2\

Kev*_*Kev 7

你可以使用subst:

subst x: c:\myfolder1\myfolder2\

或者New-PSDrive:

New-PSDrive -Name x -PSProvider FileSystem -Root c:\myfolder1\myfolder2\