1. V4.1 Error
- Posted by DonCole Jun 01, 2016
- 1747 views
What I'm trying to do is change the Environmental Variables on the fly.
With Edita you can change the run-with program.
Extension | Program |
---|---|
.exw | e:/euphoria/bin/exw.exe--works |
.eui | e:/euphoria_new/bin/eui.exe--works |
.exw | e:/euphoria/bin/exw.bat -- doesn't work anymore* |
.eui | e:/euphoria_new/bin/eui.bat--doesn't work anymore* |
- since I installed Euphoria V4.1
.............................eui bat .............................................
@PATH=%PATH% E:/euphoria/bin @SET EUDIR=E:/euphoria @SET EUINC=E:/euphoria/include;E:/eu/myinclude;E:/eu/football;E:/EU/win32li @echo on @set eudir @start /b E:euphoria_/bin/exw.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
....................................................................
.............................. .eui bat ..................................
@PATH=%PATH% E:/euphoria_new/bin @SET EUDIR=E:/euphoria @SET EUINC=E:/euphoria_new/include;E:/eu/myinclude;E:/eu/football;E:/EU/win32lib702/include/ @echo on @set eudir @start /b E:euphoria_new/bin/exw.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
...............................................................
When I try to run the .bat I get:
Euphoria Interpreter v4.1.0 development 32-bit Windows, Using System Memory Revision Date: 2015-02-02 14:18:53, Id 6300:57179171dbed
ERROR: Must specify the file to be interpreted on the command line
Don Cole
2. Re: V4.1 Error
- Posted by jimcbrown (admin) Jun 02, 2016
- 1715 views
What I'm trying to do is change the Environmental Variables on the fly.
@start /b E:euphoria_/bin/exw.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
Euphoria Interpreter v4.1.0 development 32-bit Windows, Using System Memory Revision Date: 2015-02-02 14:18:53, Id 6300:57179171dbed ERROR: Must specify the file to be interpreted on the command line
This looks like an issue in your .bat file - specifically in the use of the start command, rather than a OE bug.
3. Re: V4.1 Error
- Posted by DonCole Jun 02, 2016
- 1679 views
I've tried every .bat file I could find.
They all give me the same error.
Could you please post a sample of a .bat file that will work with this Interpreter?
Don Cole
4. Re: V4.1 Error
- Posted by jimcbrown (admin) Jun 02, 2016
- 1700 views
I've tried every .bat file I could find.
They all give me the same error.
Where are you finding them? Can you post their contents on a pastey as well?
Could you please post a sample of a .bat file that will work with this Interpreter?
@SET PATH=%PATH%;E:\euphoria\bin @SET EUDIR=E:\euphoria @SET EUINC=E:\euphoria\include;E:\eu\myinclude;E:\eu\football;E:\EU\win32li E:\euphoria\bin\exw.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
5. Re: V4.1 Error
- Posted by DonCole Jun 03, 2016
- 1645 views
hank you jimbrown,
I tried your file. I renamed it Brown.bat, I changed the EUPHORIA to EUPHORIA_NEW.
From Edita I get: Error E:\EUPHORIA_NEW\BIN\BROWN.BAT
Usually this happens when the path is wrong. I double checked the path and its ok.
So I ran it from the command line.
From the command line I get:
with .exw
'E:\euphoria_new\bin\exw.exe' is not recognized as an internal or external command, operable program or batch file.
(Now that I look I don't see it in the bin file. What happened to it?) really don't care I can run .exws with Euphoria v3.1)
with eui
Euphoria Interpreter v4.1.0 developement 32-bit Windows, Using System Memory Revision Date: 2015-02-02 14:18:53,Id: 6300:57179171dbed
ERROR: Must Specify the file to be interpreted on the Command Line
Don Cole
6. Re: V4.1 Error
- Posted by jimcbrown (admin) Jun 03, 2016
- 1658 views
I tried your file. I renamed it Brown.bat, I changed
It appears that your changes broke it.
7. Re: V4.1 Error
- Posted by irv Jun 03, 2016
- 1600 views
First of all, .eui bat won't work as posted, because it doesn't call eui.exe, it calls exw.exe.
Secondly, what parameters are you supplying when you run the bat file manually?
Nothing has changed in the way Eu handles params passed on the command line as far as I know. I'm using the same Eu version as you are, and it works fine.
8. Re: V4.1 Error
- Posted by DonCole Jun 03, 2016
- 1587 views
Secondly, what parameters are you supplying when you run the bat file manually?
I type cmd then cd to the correct folder. In this case E:\euphoria_new\bin.
Then I type eui.bat and hit return.
So Euphoria is telling you exactly what you are doing wrong: calling eui without a eu program filename. You do know what those positional parameters are for, I hope.
9. Bat files I can't get to work
- Posted by DonCole Jun 04, 2016
- 1540 views
I've tried every .bat file I could find. They all give me the same error.
Where are you finding them? Can you post their contents on a pastey as well?
Bat files that I can't get to work on Euphoria v4.1
eui.bat
@PATH=%PATH% E:\euphoria_new\bin
@SET EUDIR=E:\euphoria
@SET EUINC=E:\euphoria_new\include;E:\eu\myinclude;
E:\eu\football;E:\eu\win32lib7.0.2
@echo on
@set eudir
@start /b E:\euphoria_new\bin\eui.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
From euphoria401 download:
ed.bat
edx.bat
From Edita:
eu30.bat
(you could/should of course make these settings permanent instead)
@ echo off
set EUINC=%CD%\builtins;%CD%\arwen
exw edita
e30 edita
erbid.bat
-pw
p -c -norun tedb
p -c -norun vedb
p -c -norun eawpaint
p -c -norun pFtp.exw
p -c -norun edita
@ echo off
echo rebuild completed
\ pause
erins.bat
eins.bat
eu30.bat
erbid.bat
Don Cole
10. Re: Bat files I can't get to work
- Posted by ne1uno Jun 04, 2016
- 1522 views
I've tried every .bat file I could find. They all give me the same error.
Where are you finding them? Can you post their contents on a pastey as well?
Bat files that I can't get to work on Euphoria v4.1
eui.bat
@PATH=%PATH% E:\euphoria_new\bin
@SET EUDIR=E:\euphoria
@SET EUINC=E:\euphoria_new\include;E:\eu\myinclude;
E:\eu\football;E:\eu\win32lib7.0.2
@echo on
@set eudir
@start /b E:\euphoria_new\bin\eui.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
any chance you have unix line endings in the bats? that could easily happen. the euphoria repo has unix line endings by default and maybe whatever install or unzip didn't convert properly. find an editor with Hex VIewer
I have PSPad setup for unix line endings and sometimes forget to change it when I create a new bat file and they always screwup in weird ways.
start a command console and run one directly to make sure they work and so you can see any output and errors generated
run cmd then set PATHwill show you what is set. might have a typo in PATH somewhere?
when you name a bat or cmd the same as an executable, the executable will usually be found first.
work on one bat/problem at a time till it works the way you expect it to. what happens when you double click on a bat file? maybe the associations got changed somehow?
create a much simpler bat with just some echo and set and go from there.
11. Re: Bat files I can't get to work
- Posted by irv Jun 04, 2016
- 1507 views
If you run eui.bat with no other parameter, it's going to give you the exact error you report. The .bat file expects a file name: eui.bat hello.ex, for example. That's why the %1 %2, etc. are there.
12. Re: V4.1 Error
- Posted by jimcbrown (admin) Jun 04, 2016
- 1510 views
Secondly, what parameters are you supplying when you run the bat file manually?
I type cmd then cd to the correct folder. In this case E:\euphoria_new\bin.
Then I type eui.bat and hit return.
So Euphoria is telling you exactly what you are doing wrong: calling eui without a eu program filename. You do know what those positional parameters are for, I hope.
Probably would have been easier to notice if you had just replied to the post, instead of editing it.... http://openeuphoria.org/wiki/view/forum-msg-id-129861-edit.wc