Name

VMCreateTempFileInGuest

Description

($err, $tempFileName) = VMCreateTempFileInGuest($vmHandle,
                                                $options,
                                                $propertyListHandle):

This function creates a temporary file in the guest operating system. The user is responsible for removing the file when it is no longer needed.

Parameters

vmHandle
Identifies a virtual machine. Call VMOpen() to create a virtual machine handle.
options
Must be 0.
propertyListHandle
Must be VIX_INVALID_HANDLE.

Return Value

$err. The error code returned by the operation. For returned values, see Topics > Error Codes.

$tempFileName. The name of the new temporary file.

Remarks

Side Effects

None.

Requirements

use VMware::Vix::Simple;
use VMware::Vix::API::Constants;
since VMware Workstation 6.0
Minimum Supported Guest OS: Microsoft Windows NT Series, Linux

Example


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