1. Long absent user's question: Install Euphoria on USB Drive?

Can one get Euphoria to install and run on a usb drive? I used to use Euphoria awhile way back when, but now have a need for something that I can install on and run from a usb drive without leaving stuff behind on the computer I use it on. If I recall correctly. Euphoria used to require changes be made to the Windows autoexec file. But its been so long, maybe there are ways around this now?

new topic     » topic index » view message » categorize

2. Re: Long absent user's question: Install Euphoria on USB Drive?

phillfri said...

Can one get Euphoria to install and run on a usb drive? I used to use Euphoria awhile way back when, but now have a need for something that I can install on and run from a usb drive without leaving stuff behind on the computer I use it on. If I recall correctly. Euphoria used to require changes be made to the Windows autoexec file. But its been so long, maybe there are ways around this now?

You don't need to modify autoexec.bat, but you do need to update environment variables for euphoria 3.1 to work from a USB drive. Specifically, you need to update EUDIR, EUINC and your PATH (unless you use a fully qualified path to run euphoria).

Euphoria 4.0 also uses config files to specify this, so you shouldn't need to update the environment variables.

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: Long absent user's question: Install Euphoria on USB Drive?

For temporary changing of the enviroment variables I use such batfile:

setenv.bat

@echo off 
set path=%path%;%1\euphoria\bin 
set eubin=%1\euphoria\bin 
set euinc=%1\euphoria\include 
set eudir=%1\euphoria 
%comspec% 

It opens command prompt with the enviroment variables set properly. The only problem is to know the drive letter to be passed to this script. I use the third-party program, but it is possible to write the euphoria script and bind it. Something like that:

constant cmd = command_line() 
constant drive = cmd[2][1] -- get the first symbol of the path to the script 
 
system("setenv.bat " & drive & ':',2) 

Tested on WinXP. (Try 'ex', 'exw', 'exwc', 'ed', 'guru', etc. To run custom eu-program try 'exwc file.exw')

Probably it's possible to run some file manager like Far or even Total Commander instead of command prompt. Just try to replace %comspec% with the path to your favorite file manager in the first script. Use %1 as the placeholder of the drive letter.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu