From: glen herrmannsfeldt on 22 Jul 2010 14:26 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 22 Jul 2010 14:31 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 22 Jul 2010 14:46 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?
First
|
Prev
|
Pages: 1 2 Prev: CPA AFFILIATE NETWORKS AWESOME EARNINGS FROM YOUR HOME Next: pack problem with intel 11.1 |