Edit C:\Program Files (x86)\VMware\VMware VIX\doc\lang\perl\functions\VMListDirectoryInGuest.html
<html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> <meta HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <link rel="stylesheet" href="../../../foundrydoc.css" type="text/css" charset="ISO-8859-1"> <link rel="stylesheet" href="foundrydoc.css" type="text/css" charset="ISO-8859-1"> </head> <body> <h1>Name</h1> <b>VMListDirectoryInGuest</b> <h1>Description</h1> <pre> ($err, @directoryContents) = VMListDirectoryInGuest($vmHandle, $pathname, $options); </pre> <p> This function lists a directory in the guest operating system. <h1>Parameters</h1> <dl> <dt><i>vmHandle</i></dt> <dd> Identifies a virtual machine. Call VMOpen() to create a virtual machine handle. </dd> <dt><i>pathname</i></dt> <dd> The path name of a directory to be listed. </dd> <dt><i>options</i></dt> <dd> Must be 0. </dd> </dl> <h1>Return Value</h1> $err. The error code returned by the operation. For returned values, see Topics > Error Codes. <p> @directoryContents. An array of hashes containing the directory information. <h1>Remarks</h1> <ul> <li> You must call VMLoginInGuest() before calling this function. <li> @directoryContents is an array of hashes, containing the following values: <ul> <li> FILE_NAME: the file name <li> FILE_SIZE: file size as a 64-bit integer. The file size is zero for child directories. <li> FILE_ATTRIBUTES: file attribute flags. The flags are: <ul> <li> VIX_FILE_ATTRIBUTES_DIRECTORY - Set if the pathname identifies a directory. <li> VIX_FILE_ATTRIBUTES_SYMLINK- Set if the pathname identifies a symbolic link file. </ul> <li> FILE_MOD_TIME: The modification time of the file or directory as a 64-bit integer specifying seconds since the epoch. </ul> <li> Only absolute paths should be used for files in the guest; the resolution of relative paths is not specified. </ul> <h1>Side Effects</h1> None. <h1>Requirements</h1> <pre> use VMware::Vix::Simple; use VMware::Vix::API::Constants; </pre> since VMware Workstation 6.0 <br>Minimum Supported Guest OS: Microsoft Windows NT Series, Linux<br><h1>Example</h1> <pre> $(err, @directoryContents) = VMListDirectoryInGuest($vmHandle, $pathname, 0); die "VMListDirectoryInGuest() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK; my $num = @directoryContents; my $i; foreach $i (1..$num) { print "file: $directoryContents[$i-1]{'FILE_NAME'}\t"; print "flags: $directoryContents[$i-1]{'FILE_ATTRIBUTES'}\t"; } </pre> </body> </html> <hr>Copyright (C) 2007-2017 VMware, Inc. All rights reserved.
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de