I have been trying nearly every combination i can come up with, and searching the web (and mostly these forums) for an answer, so I apologize if this is answered somewhere.
I am trying to use virtual machines to run my compilations for automated nightly builds and such. naturally I would have to use vmrun. What I can't seem to get working is using a shared folder to access the source folders. I know this is the problem and not the mechanic I am using to start the compilations because I can copy the source to the VM and use the same process and it works.
Here is the intended process:
vmrun start <vmx> nogui
sleep.bat 240 (batch file for ping -n %1, etc, to wait until the VM comes up well enough)
echo net use Y: "\\vmware-host\Shared Folders\job_share" /p:no > C:\run\run_net.bat
vmrun -T ws -gu <user> -gp <pass> copyFileFromHostToGuest <vmx> C:\run\run_net.bat C:\run\run_net.bat
vmrun -T ws -gu <user> -gp <pass> runProgramInGuest <vmx> C:\run\run_net.bat
echo ant -f Y:\build.xml > C:\run\run_ant.bat
vmrun -T ws -gu <user> -gp <pass> copyFileFromHostToGuest <vmx> C:\run\run_ant.bat C:\run\run_ant.bat
vmrun -T ws -gu <user> -gp <pass> runProgramInGuest <vmx> C:\run\run_ant.bat
vmrun stop <vmx> soft
I have tried using enableSharedFolders and addSharedFolder. Somewhere I read that you needed to map the folder with "net use". I've tried running with -interactive and -activeWindow, reading again somewhere that -interactive uses different processes to enable the shared folders that are already enabled as part of the VMX, but whenever I use -interactive to run the ant batch file, it get the error that the user needs to be logged in interactively.
Technically I could copy the source files to the VM before compiling and that would work. but There are many, many source files so that's impractical. I'm sure there is something that i'm missing, but i'm at a loss as to what. Please help.