> From: Piet de Jong
> In the plot package the command
> 
> pd 'eps 333 125 c:\fig.eps '
> 
> works fine.   

This works despite the fact that the correct syntax given for the command 
<www.jsoftware.com/jwiki/Plot/Commands> is:
eps [file w h] display plot in EPS format.

> However something like
> dir=:'C:\Documents and Settings\'
> pd 'eps 333 125 ',dir,'fig.eps'
> 
> fails, apparently because long file names cannot have blanks
> in them.
> 
> What is an appropriate workaround?

Using the correct argument order and enclosing the file name with double 
quotes, it works fine for me.
   load 'plot'
   pd 'reset'
   pd 2 6...@$0
   pd 'eps "',dir,'fig.eps" 333 125'

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to