1. re HOV.exw to Dan
- Posted by Selgor Jan 08, 2009
- 933 views
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
2. Re: re HOV.exw to Dan
- Posted by DanM Jan 08, 2009
- 903 views
Thank you Dan.
I am a newbee
Welcome!
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.
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.
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
3. Re: re HOV.exw to Dan
- Posted by euphoric (admin) Jan 08, 2009
- 958 views
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.
4. Re: re HOV.exw to Dan
- Posted by DanM Jan 08, 2009
- 955 views
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
5. Re: re HOV.exw to Dan
- Posted by Selgor Jan 08, 2009
- 918 views
- Last edited Jan 09, 2009
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
6. Re: re HOV.exw to Dan
- Posted by mattlewis (admin) Jan 08, 2009
- 935 views
- Last edited Jan 09, 2009
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
7. Re: re HOV.exw to Dan
- Posted by euphoric (admin) Jan 08, 2009
- 923 views
- Last edited Jan 09, 2009
I am merely trying to open a directory or a file in a directory
Even that is ambiguous!
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)?
8. Re: re HOV.exw to Dan
- Posted by Selgor Jan 08, 2009
- 971 views
- Last edited Jan 09, 2009
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.