My World 3 for Windows TM

Running files in other programs

My World has a Run command which will start another program on your computer and run a specified file.

To do this, you need to include an MWB file in your screen.

Two examples are given below:

DEFPROCONCLick

Run(PATHSCREEN$+"canary1.mpg")

ENDPROC

This runs a file stored in the current My World screen directory

(Run(PATHBOOKSHARED$+"canary1.mpg") would run a file stored in the Shared directory).

DEFPROCONCLick

Run("C:\edward.doc")

ENDPROC

This runs a file stored elsewhere on your computer or network.

Notes for screen designers:

You must supply a full pathname for an external file, though this can include My World variables such as FILEBOOK$.

Run(FILEBOOK$+"..\Example.doc") would run a file saved in the same directory as the My World file.

This command will only work with filetypes associated with programs already installed on the computer or network.

Menu Next Contents