Our First WIL Program

 

Next Topic

 

The WIL Tutorial

§         Topic by Topic

§         The Tutorial Course

§         The Complete WIL Tutorial

 

image\gflag1_shg.gif
Tutor Example

 

1. Open an editor, such as WinBatch Studio.

2. Type in the line.

 

Our first WIL program will simply run our favorite Windows application: Solitaire. If you are using a menu script-based implementation of the WIL Interpreter, refer to the preceding section on Menu Files for instructions on how to create and edit WIL menu items. If you are using a batch file-based implementation of the WIL Interpreter, you will be creating your batch files using an editor, such as WinBatch Studio, that is capable of saving text in pure ASCII format. In either case, let's create a WIL program containing the following line of text:

 

Run("C:\Program Files\Microsoft Games\Solitaire\Solitaire.exe", "")

 

Note: older Windows platforms have a different file path to solitaire.

Getting started

Using WIL

Reference

Notes

3. Save the program with an appropriate extension. If you're using WinBatch, this extension will be .WBT. We will refer to this script as tutor.wbt.

 

4. Run tutor.wbt by double-clicking on the filename.

 

image\golftee_shg.gifNext…

 

Save the program, and run it (refer to your product documentation, the User's Guide, for information on how to execute a WIL program). Presto! It's Solitaire.