PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.

Prev | Next | Users Guide | PhantomScript Reference | P1 Systems


Miscellaneous

MakeExeFromScript

Syntax

MakeExeFromScript InputFile=<infile> OutputFile=<outfile> [Standalone]

Description

Create an executable program (EXE file) from a specified script.

Parameters

<infile>

Required. The file containing the script.

<outfile>

Required. The EXE file name (including the .exe suffix).

Standalone

Optional. If this parameter is present, the executable created will not require the Phantom DLL file to execute. See the remarks section for more information.

Remarks

Standalone executables require no Phantom DLL files in order to run and can therefore be more easily distributed. However, standalone executables are larger in size than non-standalone executables. A standalone executable is always at least 350 KBytes in size, while a non-standalone executable is often less than 50 KBytes in size.

Non-standalone executables must have access to the PHANTOM.DLL and PWLIB.DLL files at run time.

The statements EnableUserInput, DisableUserInput, WaitForUserEvent, WaitForUserIdle, WaitForLeftButtonClick, and WaitForRightButtonClick are ignored in Standalone executables. For this reason, scripts containing these statements should not be created using the Standalone parameter and will require the DLL's mentioned above when they are executed.

Unless your copy of Phantom for Windows is registered for Commercial Distribution, you can only execute the standalone programs you create this way on computers having a legally registered or evaluation copy of Phantom for Windows installed.

Example

MakeExeFromScript InputFile="MyScript.txt" OutputFile="MyExecutable.exe"

The above script fragment creates the program file MyExecutable.exe from the script MyScript.txt.



Prev | Next | Users Guide | PhantomScript Reference | P1 Systems

PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.