11.0

Table Of Contents
Option Parameters Description
runProgramInGuest
path to .vmx file
[ -noWait |
-activeWindow |
-interactive ]
program name
[
program
arguments
]
Runs a specified program in the guest operating system. The -noWait option
returns a prompt immediately after the program starts in the guest, rather than
waiting for it to finish. This option is useful for interactive programs. The
-activeWindow option ensures that the Windows GUI is visible, not minimized.
It has no effect on Linux. The -interactive option forces interactive guest
login. The option is useful for Windows Vista and Windows 7 or later guests to
make the program visible in the console window. You must provide the full
pathname of a program accessible to the guest. Also provide fully accessible
path names for any files specified in the program arguments, according to the
requirements of the program. VMware Tools and a valid guest login are
required.
fileExistsInGuest
path to .vmx file
Checks whether the specified file exists in the guest operating system.
VMware Tools and a valid guest login are required.
directoryExistsInGuest
path to .vmx file
directory path on
guest
Checks whether the specified directory exists in the guest operating system.
VMware Tools and a valid guest login are required.
setSharedFolderState
path to .vmx file
share name
path to folder on
host
writable | readonly
Modifies the writability state of a specified folder shared between the host and
a guest virtual machine. The value for the
share name
parameter is a mount
point in the guest file system. The value for the
path to folder on host
parameter is the exported directory on the host. To make a shared folder
writable or read-only, include the writable or readonly parameter.
addSharedFolder
path to .vmx file
share name
path to folder on
host
Adds a folder to be shared between the host and guest. The virtual machine
must be running for the addSharedFolder option to take effect. The value for
the
share name
parameter is a mount point in the guest file system. The value
for the
path to folder on host
parameter is the exported directory on the
host. On Windows guests, a delay might occur before shared folders are
visible to the runProgramInGuest, fileExistsInGuest, and
directoryExistsInGuest options.
removeSharedFolder
path to .vmx file
share name
Removes the guest virtual machine’s access to a shared folder on the host.
The virtual machine must be running for the removeSharedFolder option to
take effect. The value for the
share name
parameter is a mount point in the
guest file system.
enableSharedFolders
path to .vmx file
[runtime]
Allows the guest virtual machine, specified by the .vmx file, to share folders
with its host. After enabling, run the addSharedFolder option to specify each
host folder to share. The optional [runtime] argument limits the sharing of
folders until the virtual machine is powered off. Otherwise, the setting persists
at the next power-on.
Note The enableSharedFolders option takes effect after the shut-down and
restart of the guest. No error message appears.
disableSharedFolders
path to .vmx file
[runtime]
Prevents the guest virtual machine, specified by the .vmx file, from sharing
folders with its host. The optional [runtime] argument limits the stop applied
to the sharing of folders until the virtual machine is powered off. Otherwise,
the setting persists at next power on.
Note The disableSharedFolders option takes effect after the shut-down and
restart of the guest. No error message appears.
Using VMware Fusion
VMware, Inc. 190