Runprogram

Just starting out? Need help? Post your questions and find answers here.
loulou2522
Posts: 54
Joined: Wed Mar 18, 2015 5:52 am

Runprogram

Post by loulou2522 »

Hi all
what is the Spiderbasic equivalent of the Purebasic runprogramn function?
Thanks in advance
User avatar
Caronte3D
Posts: 187
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: Runprogram

Post by Caronte3D »

I think no RunProgram exists for SB (Web Browser limitations).
Maybe you should take a look at @IDLE excellent renewed: Atomic Server 3, so you could launch some code on the server side calling from your SB code.
loulou2522
Posts: 54
Joined: Wed Mar 18, 2015 5:52 am

Re: Runprogram

Post by loulou2522 »

In fact, what I want to do is launching an external executable programm. Is it possible to use Httpget? My version of sb is windows and my pc on winodws 11
Dirk Geppert
Posts: 330
Joined: Fri Sep 22, 2017 7:02 am

Re: Runprogram

Post by Dirk Geppert »

I can't remember where I got it. I suspect that Master Kiffi once posted it.

Code: Select all

Procedure RunProgram(Filename.s, Parameter.s = "")
  !  if (v_parameter != "") {
  !    var win = window.open(v_filename, v_parameter);
  !    win.focus();
  !  } else {
  !    window.open(v_filename);
  !  }
EndProcedure
plouf
Posts: 295
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: Runprogram

Post by plouf »

practically you cant spiderbasic is web app, aka a website

its prohibited to security reasons, i..e too many virus use that :)
Christos
Dirk Geppert
Posts: 330
Joined: Fri Sep 22, 2017 7:02 am

Re: Runprogram

Post by Dirk Geppert »

Yes indeed. I only use RunProgram() to open an external web page in the browser...
User avatar
Caronte3D
Posts: 187
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: Runprogram

Post by Caronte3D »

Dirk Geppert wrote: Wed Jan 22, 2025 8:50 am I can't remember where I got it. I suspect that Master Kiffi once posted it.
Doesn't work for me.
User avatar
Caronte3D
Posts: 187
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: Runprogram

Post by Caronte3D »

Dirk Geppert wrote: Wed Jan 22, 2025 8:55 am Yes indeed. I only use RunProgram() to open an external web page in the browser...
Maybe you could open the web page inside you SB app.
morosh
Posts: 30
Joined: Mon Feb 02, 2015 7:48 pm

Re: Runprogram

Post by morosh »

Post Reply