Name

VMGetFileInfoInGuest

Description

($err, %fileInfo) = VMGetFileInfoInGuest($vmHandle,
                                         $pathName);

This function returns information about a file in the guest operating system.

Parameters

vmHandle
Identifies a virtual machine. Call VMOpen() to create a virtual machine handle.
pathname
The path name of the file in the guest.

Return Value

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

%fileInfo.  A hash containing the file information.

Remarks

Side Effects

None.

Requirements

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

Example


my $err;
my %fileInfo;

($err, %fileInfo) = VMGetFileInfoInGuest($vmHandle, $guestFile);

print "err: $err\n";

print "Size: $info{'FILE_SIZE'} ";
print "Flags: $info{'FILE_FLAGS'} ";
print "Modtime: $info{'FILE_MOD_TIME'} ";
print "\n";


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