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

Side Effects

None.

Requirements

VixCOM.h, since VMware Workstation 6.0
Minimum Supported Guest OS: Microsoft Windows NT Series, Linux

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.

Set results = Nothing
Set job = Nothing

Copyright (C) 2007-2010 VMware, Inc. All rights reserved.