command line to execute external exe file

HASSAN NOUREDINE 1 Reputation point
2020-12-11T20:02:39.227+00:00

Any know how on a command line to execute an external exe file on a button click?
this is what I coded but not working.

Shell ("c:\sample\setup.exe")

Also how can i run it regardless of any location its copied to?

Small BASIC
Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
280 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nonki Takahashi 676 Reputation points
    2020-12-27T09:22:08.213+00:00

    Hi @HASSAN NOUREDINE , in Small Basic, following operation can do that with LitDev Extension.

    Controls.AddButton("Setup", 10, 10)  
    Controls.ButtonClicked = OnButtonClicked  
    Sub OnButtonClicked  
      LDProcess.Start("c:\sample\setup.exe","")  
    EndSub  
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.