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: 94
Joined: Sat 09 Jun 2018, 09:47

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
Posts: 399
Joined: Tue 15 Oct 2019, 09:10

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'.
If you have a comment about the style or tone of this message please report it to the moderators by clicking the exclamation mark icon, rather than complaining on the public forum.

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
Posts: 399
Joined: Tue 15 Oct 2019, 09:10

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
bb4w_search.png (155.02 KiB) Viewed 245 times
If you have a comment about the style or tone of this message please report it to the moderators by clicking the exclamation mark icon, rather than complaining on the public forum.

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
Posts: 399
Joined: Tue 15 Oct 2019, 09:10

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$
If you have a comment about the style or tone of this message please report it to the moderators by clicking the exclamation mark icon, rather than complaining on the public forum.