Name
CreateTempFileInGuest
Description
HRESULT
CreateTempFileInGuest([in] LONG options,
[in] IVixHandle* propertyList,
[in] ICallback* jobDoneCallback,
[out,retval] IJob** createJob);
This function creates a temporary file in the guest operating system.
Parameters
- options
-
Must be 0.
- propertyListHandle
-
Must be NULL (C++), null (C#), or Nothing (VB).
- jobDoneCallback
-
An ICallback instance that will be called when the
operation is complete.
- createJob
-
Returns an IJob object that describes the state of this
asynchronous operation.
Return Value
HRESULT
Remarks
- You must call VM::LoginInGuest() before calling this function.
- The result of the call (in the form of a string containing the path
to the temp file) is in the property
VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_ITEM_NAME on the
returning IJob object.
Side Effects
None.
Requirements
VixCOM.h, since VMware Workstation 6.0
Example
VBScript:
Set job = vm.CreateTempFileInGuest(0, Nothing, Nothing)
err = job.Wait(Array(VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_ITEN_NAME), results)
tempFilePath = results(0)
' Use the file.