1. Adding Euphoria to windows' allowable scripting host list

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

new topic     » topic index » view message » categorize

2. Re: Adding Euphoria to windows' allowable scripting host list

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

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

3. Re: Adding Euphoria to windows' allowable scripting host list

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 ;)

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

4. Re: Adding Euphoria to windows' allowable scripting host list

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.

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

5. Re: Adding Euphoria to windows' allowable scripting host list

ChrisB said...

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

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

6. Re: Adding Euphoria to windows' allowable scripting host list

alanjohnoxley said...

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>

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

7. Re: Adding Euphoria to windows' allowable scripting host list

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...

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

Search



Quick Links

User menu

Not signed in.

Misc Menu