1
我正在尝试使用Powershell创建挂载点。它在本地完成,这里是我遇到的代码&问题。PowerShell中的挂载点
$choice = "t"
New-Item -ItemType directory -Path "E:\Data\Riptide\Ariis\Ris\Docs\interPrimary1\"
$orgdrive = "E:\Data\Riptide\Ariis\Ris\Docs\interPrimary1\"
$driveLetter= $Choice + ":\"
$driveinfo=get-wmiobject win32_volume | where { $_.driveletter -eq $choice + ":" } | select-object DeviceID
Mountvol $orgdrive $driveinfo
当执行时,我得到的参数是不正确的。
在此先感谢。
谢谢!那正如我所希望的那样工作...... – user1442336 2012-07-18 20:15:50