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

VixVM_ReadVariable return invalid path for Guest environment variable 'TEMP'

$
0
0

I am trying to get 'TEMP' Guest environment variable using VIX API VixVM_ReadVariable but it returns invalid path which does not even exits. THe value of 'TEMP' i am geting is "C:\Windows\system32\config\systemprofile\AppData\Local\Temp" and this path does not exists on the system.

 

Code snippet:

 

job_handle = VixVM_ReadVariable(*vm_handle, VIX_GUEST_ENVIRONMENT_VARIABLE,
                                    "TEMP", 0, NULL, NULL);
err = VixJob_Wait(job_handle, VIX_PROPERTY_JOB_RESULT_VM_VARIABLE_STRING,
                      &rd, VIX_PROPERTY_NONE);

 

 

Is there something wrong i am doing or something i am missing.

 

 

Thanks.


Viewing all articles
Browse latest Browse all 34639

Trending Articles



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