Tips on using OpenEuphoria with Windows 7

Running a Command Prompt as Administrator

Many Euphoria programs assume that the user has complete permissions and control over the computer, including writing to the root directory (C:\). With newer versions of Windows this is no longer true and these older programs may fail. In order to run them properly you must first open a command prompt with elevated privileges.

This is a security risk, which is why it is not the default. Use this at your own risk.

Two ways to open a command prompt with elevated privileges:

  1. In the Start Menu, find All Programs -> Accessories -> Command Prompt. Right-click on it and choose "Run as Administrator". Then any programs you launch should be able to write files and folders to where Administrators can.
  2. In the Start Menu, in the Search Programs and Files box, type "Command Prompt". From your choices do as above, right click and choose "Run as Administrator". Instead of right-clicking, you can also Ctrl-Shift-Left Click on the program to launch it as administrator. You can also just type "cmd" into the box and press "Ctrl-Shift-Enter".

And finally, you can change the Command Line Prompt shortcut to run as Administrator or create a copy of the Command Line Prompt and make IT run as administrator. (Right-Click -> Properties -> Advanced -> Run as Administrator)

Using Euphoria as a normal user

When Euphoria is installed, you must enter an administrator password if you are using UAC (as you should be). Then the Euphoria installer changes your PATH and sets some other environment variables so that you can run Euphoria programs from the command line.

Unfortunately, these changes are only applied to the administrator account which was used to install Euphoria. If you normally use a non-administrator account to run Euphoria, or if you want other users on your computer to be able to run Euphoria, you may be surprised that these settings are not propagated to other user accounts on the computer.

To change the environment variables for a regular user, go to the Start Menu and type "environment" into the search box and choose "Edit environment variables for your account". Add the following variables:

Name Value
INCLUDE C:\euphoria\watcom\h;C:\euphoria\watcom\h\nt
PATH C:\euphoria\bin;
WATCOM C:\euphoria\watcom

You can probably put these into "Edit the system environment variables" to propagate them globally instead of on a per-user basis, but I have not tried that yet.


Quick Links

User menu

Not signed in.

Misc Menu