PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD19] Shell execute not working for url's
[WD19] Shell execute not working for url's
Iniciado por guest, 23,ene. 2015 05:21 - 6 respuestas
Publicado el 23,enero 2015 - 05:21
Hello All

A client has a cloud server running Windows Server 2008 R2

On that server the Windev shellexecute() commands for everything except passing a url work as expected and everything works on 2008 R1.

On 2008 R2 shellexecute("<a class="ExternalLink" rel="nofollow" target="_blank" href="http://www.windev.com">www.windev.com</a>") doesn't open a browser even with http:// ot https:// as a prefix.. The client's tech support say that Microsoft must have changed something in 2008R2 and its's not their problem.
I can't imagine the MS would change something as fundamental as shellexecute() functionality but as it is only url's that don't work maybe there is a security or permissions issue ?

Regards
Al
Publicado el 23,enero 2015 - 11:18
Hi Al,

I don't have this kind of problem.
Maybe it's a security setting in Windows?

Can you check if the website opens if in Windows you do :
START -> Run -> <a class="ExternalLink" rel="nofollow" target="_blank" href="http://www.windev.com">www.windev.com</a>

Kind regards,
Joris.
Publicado el 24,enero 2015 - 00:48
Hello Joris

That doesn't work on the 2008R2 server, although it does work on a 2008R1 server and every other computer I own.

Does the failure of the run <a class="ExternalLink" rel="nofollow" target="_blank" href="http://www.windev.com">www.windev.com</a> indicate a possible cause to you ?
Do you have the Windev shellexecute() function working for url's on a 2008R2 server ?

Regards
Al
Publicado el 24,enero 2015 - 10:04
Al

I have several Windows 2008 R2 servers and the Run <a class="ExternalLink" rel="nofollow" target="_blank" href="http://www.windev.com">www.windev.com</a> works fine. Our apps also use ShellExecute() and that also works fine. Our servers are also fullu patched. This is not a Windows 2008 R2 problem per se.

It would seem to me that for some reason the link between a URL and a browser is lost so Windows does not know what to do with it i.e. how to open it. I would google something like; file association url browser

HTH
Publicado el 24,enero 2015 - 13:18
Hello JP

Thanks for the confirmation, it gives me some ammunition to go back to the tech support guy at my client.

Regards
Al
Publicado el 24,enero 2015 - 20:35
Al,

Some links:

http://www.techtalkz.com/internet-explorer/473608-lost-file-association-url.html

Relevant part:

Go to Control Panel > Default Programs.
* In Set your default programs, set IE as default.
* In Associate a file type, associate type url with IE
* In Set program access and computer defaults, set IE as the default
browser.


<a class="ExternalLink" rel="nofollow" target="_blank" href="http://www.tomshardware.co.uk/forum/89286-45-files-dont-open-internet-explorer">http://www.tomshardware.co.uk/forum/89286-45-files-dont-open-internet-explorer</a>
Publicado el 25,enero 2015 - 06:12
Hello JP

Thanks for the followup info.

Regards
Al