I modified that part of the script to

if WIN32
    set shelldir "@tramodir\graph\series"
    ! del /Q *.t && cd "@tramodir" && "@tramo" -i sername -k sername.ser && cd "@tramodir\graph\series" && echo "ser_adj" > sername.txt
    ! type "@tramodir\ausentesp" >> sername.txt
    ! if exist xlin.t. (more +6 xlin.t >> sername.txt) else (more +6 xorigt.t >> sername.txt)
    ! type "@tramodir\ausentesf" >> sername.txt
    append "@tramodir\graph\series\sername.txt"

But it does not work. Am I wrong with it?

2009/4/27 Allin Cottrell <cottrell@wfu.edu>
On Sun, 26 Apr 2009, Allin Cottrell wrote:

> On Sun, 26 Apr 2009, yinung at Gmail wrote:
> > I downloaded "tramo.inp" and testes it. But gretl responds...
> > Data file is empty...
> It looks as if tramo hasn't written any output, or perhaps gretl
> is looking for it in the wrong place...

I just tested on Windows and got the same error that you saw, but
eventually I figured out what's wrong.  If the path to tramo.exe
contains spaces (e.g. "C:\Program Files\...") you have to wrap the
@tramo variable in quotes in the relevant shell line:

if WIN32
 set shelldir @tramodir\graph\series
 ! del /Q *.t && cd @tramodir && "@tramo" -i sername ...

Allin Cottrell
Gretl-users mailing list