VMware Workstation, Ubuntu Host, Windows XP Guest: Automated Way to Map Network Drives
I was using Windows XP virtual machines (VMs) in VMware Workstation 7 on Ubuntu Linux. I wanted to automate the process of mapping network drives. I typically used the
Map Network Drive
technique in Windows Explorer for this purpose. It appeared possible to automate this with
a registry edit
, but apparently a more typical and robust approach was to use
the "net use" command
.
The net use command could be entered
from the command line
. I was more interested in saving it
in a batch file
that I could apply to multiple network drives and could re-run anytime without having to remember or research the proper syntax.
Microsoft seemed to say
that, for my purposes, the command to map a network drive would look something like this:
net use d: "\\vmware-host\Shared Folders\DATA" /persistent:yes
net use d: "\\vmware-host\Shared Folders\DATA" /persistent:yes
; to disconnect, use this (I think): net use d: "\\vmware-host\Shared Folders\DATA" /delete
0 comments:
Post a Comment