Quote:
> I'm doing an A-level computing course, and for my coursework I'm trying to
> put together a program which regulates the usage of computer games by
school
> pupils. I intend to use a password system to gain access to games, so for
> example younger pupils will not be able to access Doom-style games which
may
> not be suitable. Obviously there will be other parts to the program, but
my
> question is this: is it possible to run an .exe file from within a Pascal
> program, because if after the user enters their username and password and
> selects a game, and the program isn't actually able to run it, the system
> would be useless. Does any1 know if Pascal supports this, and if so, how
do
> I use it? Many thanx in anticipation of reply.
I don't know what Pascal-dialect you're talking, I only know how to do stuff
like that with Turbo Pascal. If you work with it or with Free Pascal for
DOS, use the exec() command. It's described in the on-line help of TP. Very
important is to reduce heap size to have enough space to execute the
program.
hope this helps...
Andreas Krennmair