Run another Wndows Program

Discussions related to database technologies, file handling, directories and storage
Stub Mandrel
Posts: 4
Joined: Mon 27 Jul 2020, 17:14

Run another Wndows Program

Post by Stub Mandrel »

I have had BB4W for many years, I use it rarely but it's a great tool for making neat programs that use a Windows interface.

I have written a simple interface for a program that is otherwise command line only.

You choose options, select input and output files, then it generates and runs the command line.

The files are not associated with the program I want to call and can't be for practical reasons.

The problem is I can't for the life of me remember how to run a command line from BB4W; I'm sure I read ho to many years ago, but i can't find it anywhere.

Can anyone help me?

Thanks

Neil
User avatar
hellomike
Posts: 184
Joined: Sat 09 Jun 2018, 09:47
Location: Amsterdam

Re: Run another Wndows Program

Post by hellomike »

Checkout the Help for the OSCLI keyword. This should reveal all.

Regards,

Mike
Stub Mandrel
Posts: 4
Joined: Mon 27 Jul 2020, 17:14

Re: Run another Wndows Program

Post by Stub Mandrel »

OSCLI!

I should have remembered that!
RichardRussell

Re: Run another Wndows Program

Post by RichardRussell »

Stub Mandrel wrote: Wed 29 Jul 2020, 21:10 OSCLI! I should have remembered that!
The command you need is *RUN but, yes, OSCLI is the way to access it when parts of the command are 'variable'.
Stub Mandrel
Posts: 4
Joined: Mon 27 Jul 2020, 17:14

Re: Run another Wndows Program

Post by Stub Mandrel »

Many thanks, Richard, Mike.

I looked at 'RUN' but had forgotten about *run.

Unfortunately the standard MS Help search requires you to have just the right keywords.

Neil
RichardRussell

Re: Run another Wndows Program

Post by RichardRussell »

Stub Mandrel wrote: Thu 30 Jul 2020, 17:22 Unfortunately the standard MS Help search requires you to have just the right keywords.
If you type 'run windows program' into the Search box in the BB4W help viewer, *RUN is the second hit:

bb4w_search.png
You do not have the required permissions to view the files attached to this post.
Stub Mandrel
Posts: 4
Joined: Mon 27 Jul 2020, 17:14

Re: Run another Wndows Program

Post by Stub Mandrel »

Many thanks, it's always obvious when you know... I tried various permutations but my focus was on the windows command line...

Now I have to get my command line right...
RichardRussell

Re: Run another Wndows Program

Post by RichardRussell »

Stub Mandrel wrote: Fri 31 Jul 2020, 12:03 Now I have to get my command line right...
Don't forget the old trick: replace OSCLI by PRINT to see exactly the command you are constructing, or indeed use both:

Code: Select all

      command$ = "RUN....  "
      PRINT command$
      OSCLI command$