From: LukasP <LP...@po...> - 2009-12-21 10:06:36
|
... OK, thank you for the explanation. I didn't realize that all gnuplot parameters are treated as file names. Sorry. Hans-Bernhard Bröker-2 wrote: > > You don't, because you can't pass them. gnuplot treats all command line > arguments as file names or options, but not as parameters. > > set FILE=system("echo %FILE%") > I tried to get environment variable as suggested, but I was not successful, see the output: Terminal type set to 'windows' gnuplot> FILE=system("echo %HOME%") warning: system evaluation not supported by MS-Windows 32 bit So how to get it? Note that the "HOME" variable was set to "C:\Lukas" via system command: set HOME=C:\Lukas (Hope there won't be any problems using "\" in file names, although the "/" is used at Linux systems and "\" is often the escape-sequence prefix.) Thank you in advance. Lukas NB: G N U P L O T Version 4.2 patchlevel 6 last modified Sep 2009 System: MS-Windows 32 bit Copyright (C) 1986 - 1993, 1998, 2004, 2007 - 2009 Thomas Williams, Colin Kelley and many others -- View this message in context: http://old.nabble.com/command-line-arguments-to-gnuplot-scripts-tp7757834p26871956.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |