1. Adding Euphoria to windows' allowable scripting host list
- Posted by alanjohnoxley Nov 01, 2010
- 1643 views
Hello!
I have a rather nice commercial backup program called SyncBackPro.
It supports scripting, which I'd like to do with Euphoria, but the SyncBackPro manual says:
"SyncBackPro can use scripts written in any scripting language (Supported by the Windows Scripting Host) that is installed on the computer, but typically they are writting in VBScript or JScript"
I use Windows XP SP3.
So how do I get syncback to interpret a Euphoria script....
Define the ".exw" extension to be opened with the euphoria\bin\eui.exe,
added ".exw" and ".ex" to the PATHEXT environmental variable,
and what else, something in the registry ?
When I attempt to import a ".exw" file as a script, I get "the script language cannot be determined" from syncbackpro.
The euphoria interpreter is in the front of my path.
Regards, Alan
2. Re: Adding Euphoria to windows' allowable scripting host list
- Posted by ChrisB (moderator) Nov 01, 2010
- 1647 views
Hi
Is the key phrase "any scripting language (Supported by the Windows Scripting Host)"? In which case case I don't think euphoria is supported as a scripting language by the Windows Scripting Host.
Chris
3. Re: Adding Euphoria to windows' allowable scripting host list
- Posted by alanjohnoxley Nov 01, 2010
- 1682 views
Yes,
so the question is, how to add Euphoria as a valid scripting language?
I am busy looking at the MSDN site ... so far the trick seems to be to get cscript.exe to call eui.exe and accept sdtin/stdout.
cscript.exe is the command-line script interpreter.
I hope this is not a Henry Ford issue, "any colour you want, so long as its black" or in this case VBS/JS ;)
4. Re: Adding Euphoria to windows' allowable scripting host list
- Posted by CoJaBo Nov 01, 2010
- 1672 views
My guess is the program is hard-coded to accept only certain languages- otherwise, it would have worked doing the file extension association.
Just write a VBS wrapper that calls your Eu script.
5. Re: Adding Euphoria to windows' allowable scripting host list
- Posted by mattlewis (admin) Nov 01, 2010
- 1705 views
Is the key phrase "any scripting language (Supported by the Windows Scripting Host)"? In which case case I don't think euphoria is supported as a scripting language by the Windows Scripting Host.
I think you'd need to wrap euphoria into a COM object.
I believe this is possible, but far far far from trivial.
Matt
6. Re: Adding Euphoria to windows' allowable scripting host list
- Posted by ne1uno Nov 02, 2010
- 1592 views
so the question is, how to add Euphoria as a valid scripting language?
I am busy looking at the MSDN site ... so far the trick seems to be to get cscript.exe to call eui.exe and accept sdtin/stdout.
is euphoria really a scripting language?
look into how python does it, they are one of the few blessed* languages. activestate python I think you could have *.pys files work much like javascript and vbs does.
<OT>I tend to think it was a failed microsoft acquisition move though. google and microsoft were both doing a brain drain of python visionaries at the time. how else can you explain python jumping from version 2.4 to 3000 inside of a decade. though they did capitulate and start calling it version 3.0</OT>
7. Re: Adding Euphoria to windows' allowable scripting host list
- Posted by alanjohnoxley Nov 04, 2010
- 1441 views
Is Euphoria a scripting language?
Yes, but its more than that too as we all know!
Syncbackpro supports lots of variables that can be referenced from a supported script. That means I can make a whizzbang backup script once I get Euphoria known to Windows scripting host. I'm still busy researching how...