Enabling Shared Folders

13 views
Skip to first unread message

Colin Campbell

unread,
Sep 30, 2014, 2:35:49 PM9/30/14
to vmwar...@googlegroups.com
Hi all, started using VMWareTasks a couple weeks ago and I'm really liking it/finding it convenient.

I'm trying to add a feature to my program to allow it to enable the shared folders of a recently copied and started VM.  I found the SharedFolders property off the VMWareVirtualMachine class and its writeonly property Enabled.  But that might not be what I'm looking for.

                    using (var virtualMachine = _virtualHost.Open(vmxPath))
                        virtualMachine.SharedFolders.Enabled = true;

I'm trying to tick the VMWare Workstation radiobutton that you get to from the VM menu => Settings... => Options => Shared Folders => Folder sharing => Always enabled

Everytime I copy a VM folder, that radiobutton reverts to Disabled.

Any ideas?  Thanks!

Daniel Doubrovkine

unread,
Sep 30, 2014, 2:54:16 PM9/30/14
to vmwar...@googlegroups.com
I don't think you can - this is of the realm of a management API, VixCOM doesn't have support for that.

--
You received this message because you are subscribed to the Google Groups "vmwaretasks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vmwaretasks...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

dB. | Moscow - Geneva - Seattle - New York
code.dblock.org - @dblockdotorg - artsy.net - github/dblock

Reply all
Reply to author
Forward
0 new messages