calling program from dos promp, eviews 8

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

burabura
Posts: 6
Joined: Mon Nov 03, 2008 2:23 am

calling program from dos promp, eviews 8

Postby burabura » Wed Oct 23, 2013 3:45 am

hi,
I have a dos-batch, very simple, calling eviews and passing a .prg program to be executed with a couple of parameters.
the batch line is something like this (but what I'm going to say holds even typing directly in the dos prompt):
"c:\programmi\eviews7\eviews7" g:\ev_priamo\programmi\simula.prg %1 %2
it opens eviews7, loads the program simula.prg from the right path and executes it in eviews with %1 and %2 being the names of 2 different workfiles.

in eviews 7 (both on win xp and win 7) this is working very well

now I have a new computer, win 7 and eviews 8.
the dos-batch line is modified to take into account the different path\name for the eviews executable and is

"c:\program files\EViews 8\EViews8_x64" g:\ev_priamo\programmi\simula.prg %1 %2

when executed, it opens eviews, but in the eviews window it shows the dialog window for running programs, empty, and remains waiting for the program name and parameters. so nothing works automatically.

for our company this is quite a big problem because we have a lot of procedures built in this way.
I saw an answer in this forum stating that "nothing changed" as far as Dos prompt is concerned, but my procedure doesn't work at all.

heeeeeelp :cry:

EViews Steve
EViews Developer
Posts: 844
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: calling program from dos promp, eviews 8

Postby EViews Steve » Wed Oct 23, 2013 8:09 am

EViews 8 introduced a small dual-mode launcher for the actual EViews 8 EXE that allows you to see output back into the same DOS command window if you launch it with DOS command line parameters. The launcher has the same name as the EXE but with a .COM extension. If you call EViews8_x64 without an extension, the .COM program is called instead.

It's possible that this launcher is what's causing your issue. Change your batch file to include the ".EXE" at the end of the EViews 8 program name like this:

Code: Select all

"c:\program files\EViews 8\EViews8_x64.exe" g:\ev_priamo\programmi\simula.prg %1 %2
Steve

burabura
Posts: 6
Joined: Mon Nov 03, 2008 2:23 am

Re: calling program from dos promp, eviews 8 - solved

Postby burabura » Wed Oct 23, 2013 8:43 am

ok
at a first check it seems to be working
thank you very much


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests