
VMWare Player 運行 Windows 10 VM。我已與該虛擬機共享一個資料夾,設定“在 Windows 用戶端中對應為網路磁碟機「 到TRUE
。
我需要以管理員身份在來賓的共用資料夾中鍵入命令(npm)。然而,有一個問題:
作為 lambda 用戶:
net use
New connections will be remembered.
Status Local Remote Network
------------------------------------------------------------------------
Z: \\vmware-host\Shared Folders
Dossiers partagés VMware
The command completed successfully.
作為管理員:
net use
New connections will be remembered.
There are no entries in the list.
管理員帳號似乎不知道 VMWare 共用資料夾。有沒有辦法以管理員身分存取共用資料夾?
答案1
因此,如評論中所述,輸入net use Z: "\\vmware-host\Shared Folders"
管理員命令提示字元解決了問題。
答案2
建立一個具有以下操作的計劃任務:
%windir%\system32\cmd.exe /k start /min net use Z: "\\vmware-host\Shared Folders"
現在您應該能夠存取該資料夾。