|
From: Tait <gnu...@t4...> - 2011-01-21 01:09:41
|
> In Windows I can link *.plt files (thats how I name my gnuplot macros) to an > executable, e.g. gnuplot.exe. My Problem is that gnuplot's working directory > is then set to it's program folder instead of the *.plt file's folder. > Output is then written to a wrong folder. > > Is there a way to link my *.plt files to gnuplot.exe and automatically use > the *.plt file's current directory as gnuplot's working directory? Not the way you're thinking. The easiest way is to simply include at the top of your *.plt files: cd 'c:/path/to/working/directory' If you always want to write to the same directory, you could include a cd command in your gnuplot.ini file (see "help startup" or http://www.gnuplot.info/docs_4.0/gnuplot.html#Start-up but the online documentation is outdated). (You can create a shortcut and set the working directory in that shortcut under properties, but this mechanism is largely redundant with the use of gnuplot.ini.) |