A free template from Joomlashack

A free template from Joomlashack

Login Form






Lost Password?
No account yet? Register

Syndicate

Home
Firefox Appsync Issues
Monday, 01 March 2010

I think you need to use the ExpandPath API function.

ExpandPath
The ExpandPath(InputPath) function converts a path from macro format to system format.

Parameters
InputPath
A path in macro format.

Returns
The expanded macro path in system format.

Examples
Path = ExpandPath("%ProgramFilesDir%\Myapp.exe")
Path = c:\Program Files\myapp.exe
All macro paths must escape the % and # characters by replacing these characters with #25 and #23.
Path = ExpandPath("%ProgramFilesDir%\FilenameWithPercent#25.exe")
This expands to C:\Program Files\FileNameWithPercent%.exe.

Since %AppData% in this case is a folder macro (%AppData% exists as a environment variable on the OS as well making it a little more complicated in this case).

More about script and folder macros are explained in the manual: http://www.vmware.com/pdf/thinapp404_manual.pdf

Read more at: http://communities.vmware.com/message/1484493

 
< Prev   Next >