Page 1 of 1

Calling EViews from shell?

Posted: Wed Nov 23, 2016 6:11 am
by paues
Is it possible to send arguments to EViews from the command line? If so, how do I do that? Specifically, I would like to tell EViews to execute a program file. Ideally, EViews would just run in the background and then return some output. Alternatively, EViews would just open and then run the program file. In that case, is it possible to reuse an instance of EViews or do I have to open a new instance on each call?

Re: Calling EViews from shell?

Posted: Wed Nov 23, 2016 10:32 am
by EViews Matt
Hello,

Yes, you can invoke EViews from a command prompt/shell and have it execute a program. For example,

"C:\Program Files\EViews 9\EViews9_x64.exe" C:\Users\me\Documents\foo.prg

Paths and filenames should be changed to reflect your needs, of course. Be default, EViews will open, execute the specified program, and then remain open. If you want EViews to close after the program has finished, have the program execute the "exit" command when it's done.

The syntax above creates a new instance of EViews every time. You can interact with the EViews instance normally after the program has finished, assuming the program doesn't "exit", but not via the command prompt/shell. A "reusable" instance of EViews would require something like COM automation, but that isn't a command line technique. If you're interested, you can learn about EViews COM automation here.

Re: Calling EViews from shell?

Posted: Wed Nov 23, 2016 10:34 am
by EViews Steve
The answer is on this page:

http://www.eviews.com/help/helpintro.ht ... asics.html


Sent from my iPhone using Tapatalk

Re: Calling EViews from shell?

Posted: Mon May 29, 2023 11:38 pm
by Elderfield.A
Hi,

Is there any way to call EViews silently from shell? So that the GUI doesn't launch, but a program can be executed?

Thanks
Adam

Re: Calling EViews from shell?

Posted: Tue May 30, 2023 7:44 am
by EViews Steve
try this:

Code: Select all

EViews13.exe /programonly "c:\files\my.prg"

Re: Calling EViews from shell?

Posted: Wed May 31, 2023 6:23 pm
by Elderfield.A
Thanks Steve - works wonderfully via CMD. Unfortunately not via R system command, this should be something I can figure out though.

Cheers.