0

マップされたドライブ情報を含むバット ファイルが既にありますが、ドライブの名前を変更する方法はありますか?

4

1 に答える 1

0

次のように comobject を使用できます (powershell コード):

$desc=  "MyNetworkshare" # This is the label for your unit
$mDrive =  "H:\" #this is your unit (any letter you have..)
$oShell = new-Object -com Shell.Application
$oShell.NameSpace($mDrive).Self.Name = $Desc
于 2013-01-14T09:59:05.737 に答える