Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

Help request: RunProgramInGuest() can't see files in shared folders

$
0
0

Hello,

 

I'm trying to get shared folders to work and have put the following commands into the autoexec.bat in a hosted Windows XP VM:

 

net use v: /d

net use v: "
.host\Shared Folders"

 

 

When I try and run an .exe or .cmd file from the mapped drive, the RunProgramInGuest() call fails because it cannot see the shared folder even though they it is there when I login to the VM interactively. I suspect that it's some sort of timing issue -- that the script is looking for the shared folder before autoexec.bat is finished mapping the drive. Beyond trying arbitrary delays, or repeatedly checking to see if the folder is there, is there another solution for this issue?

 

 

 

 

Thank you,


Viewing all articles
Browse latest Browse all 34639

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>