I'm trying to add a shared folder to the VM (.vmx) after reverting to a snapshot. I used to do this via directly editing the .vmx file and mapping via "net use," on the guest through script. This way worked when i start from PowerOn, but not from RevertToSnapshot. So, I decided to try the api method, but from the documentation I'm not sure how the paths should look.
I would like to map any drive to c:\documents and settings\<username>\my documents\appname (host side) and on the guest have it be "persistent storage."
Below is what i'm trying but doesn't seem to map anything. I see sharedfolder info is added to the .vmx file.
m_jobHandle = VixVM_AddSharedFolder(m_vmHandle,
"y:
\host
shared folders
Persistent Storage",
"c:
documents and settings
rod
my documents
internet cleanroom",
VIX_SHAREDFOLDER_WRITE_ACCESS,
&TVMWareBase::HandleCallback,
&m_bHandleCallbackDone);
Can someone show me from my example what the correct paths should be?
thanks,
Rod