Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

FileNotFound on startProgramInGuest

$
0
0

I am trying to execute the "net" command in a windows guest from java using the startProgramInGuest method.

 

I've tried using "%SystemRoot%\System32\net" as the path.

I've tried retrieving the environment variables using readEnvironmentVariableInGuest and then using it in the path which leads to "c:\WINDOWS\System32\net"

I've tried hardcoding the path.

I've tried setting the environment variables including path and then just executing "net".

 

No matter what I try, I always get a FileNotFound error. Is there something I'm not understading about the error or how to set the path?

 

Thank you.


Viewing all articles
Browse latest Browse all 1860

Trending Articles



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