<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242527</link>
    <title>MATLAB Central Newsreader - Shortcuts and links in windows</title>
    <description>Feed for thread: Shortcuts and links in windows</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 16 Jan 2009 10:36:01 -0500</pubDate>
      <title>Shortcuts and links in windows</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242527#622026</link>
      <author>Adam </author>
      <description>Hiya, I just had to move onto a windows platform at short notice. How do I get MATLAB to read via links on the windows system?&lt;br&gt;
&lt;br&gt;
i.e.,&lt;br&gt;
&lt;br&gt;
load C:\MRI\carrot_stick\data.mat&lt;br&gt;
&lt;br&gt;
works fine but if I make a link (shortcut) in the windows file browser called carrot_stick under the MRI directory, then MATLAB only reads the link as a file. Is there a way to set up links within MATLAB to bypass this behaviour of windows?&lt;br&gt;
&lt;br&gt;
Many thanks for any suggestions,&lt;br&gt;
&lt;br&gt;
Adam </description>
    </item>
    <item>
      <pubDate>Fri, 16 Jan 2009 13:59:02 -0500</pubDate>
      <title>Re: Shortcuts and links in windows</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242527#622068</link>
      <author>Jiro Doke</author>
      <description>&quot;Adam&quot; &amp;lt;a.mcnamara@surrey.ac.uk&amp;gt; wrote in message &amp;lt;gkpnuh$dpm$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hiya, I just had to move onto a windows platform at short notice. How do I get MATLAB to read via links on the windows system?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; i.e.,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; load C:\MRI\carrot_stick\data.mat&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; works fine but if I make a link (shortcut) in the windows file browser called carrot_stick under the MRI directory, then MATLAB only reads the link as a file. Is there a way to set up links within MATLAB to bypass this behaviour of windows?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Many thanks for any suggestions,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Adam &lt;br&gt;
&lt;br&gt;
Adam,&lt;br&gt;
&lt;br&gt;
You can use Java inside MATLAB.&lt;br&gt;
&lt;br&gt;
On Windows, shortcuts should have an extension .lnk&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; x = java.io.File('C:\MRI\carrot_stick.lnk')&lt;br&gt;
&amp;gt;&amp;gt; y = sun.awt.shell.ShellFolder.getShellFolder(x)&lt;br&gt;
&amp;gt;&amp;gt; actualDirectoryName = y.getLinkLocation()&lt;br&gt;
&amp;gt;&amp;gt; load(fullfile(char(actualDirectoryName), 'data.mat'))&lt;br&gt;
&lt;br&gt;
jiro</description>
    </item>
    <item>
      <pubDate>Fri, 16 Jan 2009 14:22:02 -0500</pubDate>
      <title>Re: Shortcuts and links in windows</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242527#622074</link>
      <author>Adam </author>
      <description>perfect, cheers&lt;br&gt;
&lt;br&gt;
Adam</description>
    </item>
  </channel>
</rss>

