From help-octave-request at bevo dot che dot wisc dot edu Thu Feb 5 02:36:15 2004 Subject: Re: Windows shortcut problem From: Christoph Dalitz To: Peter Brinkmann Cc: help-octave at bevo dot che dot wisc dot edu Date: Thu, 5 Feb 2004 09:24:20 +0100 On Wed, 4 Feb 2004 23:12:17 -0600 Peter Brinkmann wrote: > > It appears that Octave ignores the starting directory set in the properties > of its shortcut icon under Windows. On the other hand, a colleague tells me > that this problem does not occur when Octave is launched from its entry in > the Start menu. Has anyone else experienced this sort of problem? Is there > a way to create a shortcut icon that'll launch Octave in the desired > directory? > I guess the problem has to do with Octave being a Cygwin application rather than a "native" Win32 application. Something like the following should work: C:\path\to\cygwin\bin\sh.exe -c "cd /your/directory && octave" Note that you need to specify the *Cygwin* path to your directory. You can generate the cygwin path format with the utility cygpath that is shipped with cygwin in the package cygutils. You can directly use it in the shortcut with the backtics cammand substitution syntax: C:\path\to\cygwin\bin\sh.exe -c "cd `cygpath -u C:\win32\path\format\` && octave" Hope this helps, Christoph Dalitz ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------