From: glen herrmannsfeldt on
Allamarein <matteo.diplomacy(a)gmail.com> wrote:
(snip on giving file names to programs)

> My code will be write by CVF 6.6 and it runs on Windows XP.
> Let's suppose my executable is called 'opp.exe' and its input file
> 'data.dat'
> Now when I launch opp.exe it waits, I type "data.dat" and I push
> return key.

> I am able to compile data.dat, but I would call opp.exe and
> automatically it should find data.dat, without any commands from
> keyboard.

> Would you suggest how to write my code?
> call system ("opp < data.dat") ? Is it right?
> Also under XP it should works?

No. To do this you need a file containing the characters "data.dat"
(usually without the quotes). Then use the name of that file
in the system() call.

-- glen
From: Allamarein on
On 22 Lug, 20:26, glen herrmannsfeldt <g...(a)ugcs.caltech.edu> wrote:
> Allamarein <matteo.diplom...(a)gmail.com> wrote:
>
> (snip on giving file names to programs)
>
> > My code will be write by CVF 6.6 and it runs on Windows XP.
> > Let's suppose my executable is called 'opp.exe' and its input file
> > 'data.dat'
> > Now when I launch opp.exe it waits, I type "data.dat" and I push
> > return key.
> > I am able to compile data.dat, but I would call opp.exe and
> > automatically it should find data.dat, without any   commands from
> > keyboard.
> > Would you suggest how to write my code?
> > call system ("opp < data.dat") ? Is it right?
> > Also under XP it should works?
>
> No.  To do this you need a file containing the characters "data.dat"
> (usually without the quotes).   Then use the name of that file
> in the system() call.
>
> -- glen

So, how I should do?
From: Allamarein on
On 22 Lug, 20:31, Allamarein <matteo.diplom...(a)gmail.com> wrote:
> On 22 Lug, 20:26, glen herrmannsfeldt <g...(a)ugcs.caltech.edu> wrote:
>
>
>
>
>
> > Allamarein <matteo.diplom...(a)gmail.com> wrote:
>
> > (snip on giving file names to programs)
>
> > > My code will be write by CVF 6.6 and it runs on Windows XP.
> > > Let's suppose my executable is called 'opp.exe' and its input file
> > > 'data.dat'
> > > Now when I launch opp.exe it waits, I type "data.dat" and I push
> > > return key.
> > > I am able to compile data.dat, but I would call opp.exe and
> > > automatically it should find data.dat, without any   commands from
> > > keyboard.
> > > Would you suggest how to write my code?
> > > call system ("opp < data.dat") ? Is it right?
> > > Also under XP it should works?
>
> > No.  To do this you need a file containing the characters "data.dat"
> > (usually without the quotes).   Then use the name of that file
> > in the system() call.
>
> > -- glen
>
> So, how I should do?

The command RUNQQ can help me?