Re: Long absent user's question: Install Euphoria on USB Drive?
- Posted by MikeManturov Feb 24, 2009
- 854 views
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.