# Cannot use variables with VMware execute guest command

**URL:** https://www.finalbuilder.com/forums/t/cannot-use-variables-with-vmware-execute-guest-command/2012
**Category:** Discussion
**Created:** [July 13, 2012, 12:49pm UTC](https://www.finalbuilder.com/forums/t/cannot-use-variables-with-vmware-execute-guest-command/2012 "2012-07-13T12:49:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 13, 2012, 12:49pm UTC](https://www.finalbuilder.com/forums/t/cannot-use-variables-with-vmware-execute-guest-command/2012/1 "2012-07-13T12:49:56Z")

</div>

Hi,

I'm trying to the vmware guest command to copy a file from the guest to the host.

The arguments I'm trying to pass to the the function "copy a file from the guest to the host " are:

guest path =/home/user/%myfile%

host path = c:\temp\%myfile%

I get an error saying that the file doesn't exist. the variable %myfile% is a project variable

I have executed the command from the command line manually using the vmrun command and it works fine.

However when I enter the actual values e.g:

guest path =/home/user/somefile

host path = c:\temp\somefile

It copies the file fine. I think is maybe a bug, as the variables should be valid for use in the paths.

Thanks

Satpal
