When you run a program from the DOS prompt, you
can specify a parameter or "switch" along with it:
prog/s or prog s
The switch is accessible in the program by the
PB function COMMAND$.
I want to run a program starting from within a
program, using either the RUN or EXECUTE command.
Is it possible to specify a parameter along with
the program? This works:
RUN "prog.exe"
but these don't:
RUN "prog.exe s" ---> error 53 file not found
RUN "prog.exe/s" ---> error 76 path not found
(though / not \)
(I want to avoid, if possible, the program writing a
little file before RUN and prog reading it to get s.)
can specify a parameter or "switch" along with it:
prog/s or prog s
The switch is accessible in the program by the
PB function COMMAND$.
I want to run a program starting from within a
program, using either the RUN or EXECUTE command.
Is it possible to specify a parameter along with
the program? This works:
RUN "prog.exe"
but these don't:
RUN "prog.exe s" ---> error 53 file not found
RUN "prog.exe/s" ---> error 76 path not found
(though / not \)
(I want to avoid, if possible, the program writing a
little file before RUN and prog reading it to get s.)
Comment