1. re HOV.exw to Dan

Thank you Dan.

I am a newbee I really do not know how to fix "reply" thing

And when you say file .......

do you mean e.g.

c:
euphoria
include.

or something ??

I tried c:
.... NIl

Sorry for my ignorance

cheers ,

selgor

new topic     » topic index » view message » categorize

2. Re: re HOV.exw to Dan

Selgor said...

Thank you Dan.

I am a newbee

Welcome!

Selgor said...

I really do not know how to fix "reply" thing

That's ok, it's probably NOT your fault, probably the forum itself.
And anyway, starting this new message did fix it, at least here.

Selgor said...

And when you say file .......

do you mean e.g.

c:
euphoria
include.

or something ??

partly.
You have to do a number of things, including making sure that the place you point
to is actually a file, not a directory, and that it is an .html (or .htm) file, also.

but possibly more important, I think you have to change the statement,

 shellExecute( "open", "http://www.rapideuphoria.com", Default ) 

to something like,

  shellExecute( "open", "file://c:\\euphoria\\include\\aFile.htm", Default ) 

although I'm not 100% sure of how correct that is.

Selgor said...

I tried c:
.... NIl

Sorry for my ignorance

cheers ,

selgor

I should ask if you are in fact trying to open an html FILE via a browser, though, because that's what the demo you're modifying is intended to do. If you're trying to do something else, let us know & someone will help.

Dan

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

3. Re: re HOV.exw to Dan

DanM said...

I think you have to change the statement,

 shellExecute( "open", "http://www.rapideuphoria.com", Default ) 

to something like,

 shellExecute( "open", "file://c:\\euphoria\\include\\aFile.htm", Default ) 

although I'm not 100% sure of how correct that is.

His code is good. You can use shellExecute() the way he's using it to open a web page in the default browser.

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

4. Re: re HOV.exw to Dan

euphoric said...
DanM said...

I think you have to change the statement,

 shellExecute( "open", "http://www.rapideuphoria.com", Default ) 

to something like,

 shellExecute( "open", "file://c:\\euphoria\\include\\aFile.htm", Default ) 

although I'm not 100% sure of how correct that is.

His code is good. You can use shellExecute() the way he's using it to open a web page in the default browser.

Except I THINK he's trying to open a FILE (html) via default browser, NOT a WEB page on the internet?

Dan

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

5. Re: re HOV.exw to Dan

My ignorance has led you astray. My apology.

I am merely trying to open a directory or a file in a directory

e.g.

"c:
euphoria"

or

"c:
euphoria
myfile.exw"

I saw shellexecute and thought the above would work.

But statement shellexecute in the HOV.exw program seems only to want to open web sites .

Sorry for my ignorance.

In anticipation , thank you.

cheers selgor

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

6. Re: re HOV.exw to Dan

Selgor said...

My ignorance has led you astray. My apology.

I am merely trying to open a directory or a file in a directory

Instead of 'open' try 'explore'.

Matt

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

7. Re: re HOV.exw to Dan

Selgor said...

I am merely trying to open a directory or a file in a directory

Even that is ambiguous! smile

What do you want to do with that open file? Do you want to get its contents into a variable? Do you want to open it with its default viewing program (that is, not the program you're making)?

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

8. Re: re HOV.exw to Dan

Thank you to all who have posted.

I am merely trying to open a directory. Or, I am opening a directory and executing a file in the directory.

Further investigation of W32Lib led me to the following.

If you replace Default with SW_SHOWNORMAL then all is O.K.

It opens Directory.

It runs the file.

I will post new , revised program soon.

Thanks to all for your kind help.

Cheers, Selgor.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu