From: Hans-Bernhard B. <HBB...@t-...> - 2009-12-20 17:45:53
|
LukasP wrote: > I have the same problem - The same as --- which one? > how to access parameters passed on the system command line. You don't, because you can't pass them. gnuplot treats all command line arguments as file names or options, but not as parameters. > I am a Windows user, so solutions described above are unreachable for me. Again: what "above" are you referring to? > Do you think it would be possible or useful to implement built-in variables > (e.g. ARG1, ... ARG9) which would represent the command line arguments for > [w]gnuplot? No. Because all such arguments already are script filenames. A single argument can't be two different things at once. > Or to create a built-in function e.g. getenv(varname) which would get the > environment variable? Not need to. Piping the 'echo' command already does that. _If_ you use the wgnuplot_pipes.exe or the (soon to become available) gnuplot.exe console version, that is. > set FILE getenv("FILE") set FILE=system("echo %FILE%") |