PSN-L Email List Message

Subject: For You EQ Programmers
From: "Geoffrey" gmvoeth@...........
Date: Mon, 14 Jun 2010 05:52:45 -0700


Hey Guys, I used to have problems
running programs from within programs
but found a wonderful way that seems
to work in Windows Vista 64 or whatever.

This is using Power Basic 8 ( not sure about others
like C or whatever)


What you do is build from within the calling program,
a text oriented batch file
just like the old MSDOS days.

You PLACE "EXIT" at the end of the batch file.

You use the PBASIC shell command to execute the batch file
you just created and then kill or delete
( they mean the same thing) the batch file you just ran.

This means you are making a program which is running
another ( exe,com, whatever) indirectly through the system itself.

The program is behaving as if it were you the user.

This seems to be the only way to do this without some
kind of OS error happening when indirectly executing
one program from within another.

Hope this helps another ignoramus like
myself who had to learn the hard way.

Hoorah for the conspiracy of education.

Best Regards to you at PSN.

I like this method even tho there may in
your eyes be a better one like using
the call command ??

I think the batch idea gives you more
flexibility with controlling the results.

When you want to use another program
possibly not built by yourself.

geoff



__________________________________________________________

Public Seismic Network Mailing List (PSN-L)


[ Top ] [ Back ] [ Home Page ]