PS C:\> cmd /c mklink /d testlink non-existent-dir
symbolic link created for testlink <<===>> non-existent-dir
PS C:\> rm .\testlink
Remove-Item : C:\testlink is a NTFS junction point. Use the Force parameter to delete or modify.
At line:1 char:3
+ rm <<<< .\testlink
+ CategoryInfo : WriteError: (C:\testlink:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
PS C:\> rm -force .\testlink
Remove-Item : Could not find a part of the path 'C:\testlink'.
At line:1 char:3
+ rm <<<< -force .\testlink
+ CategoryInfo : WriteError: (C:\testlink:String) [Remove-Item], DirectoryNotFoundException
+ FullyQualifiedErrorId : RemoveItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
PS C:\>
ข้อผิดพลาดเกี่ยวข้องกับความจริงที่ว่า rm -force พยายามที่จะลบรายการภายในที่ใดก็ตามที่มีการเชื่อมโยงชี้ ฉันจะลบสิ่งนี้โดยใช้บรรทัดคำสั่งได้อย่างไร ฉันจะรายงานบักขุมพลัง / เชลล์ได้ที่ไหน ดูเหมือนว่า powershell ไม่ได้อยู่บน ms connect