<doc>
  <legacy_id>1650</legacy_id>
  <name>create alias</name>
  <type>command</type>
  <syntax>
    <example>create alias <i>aliasPath</i> to {file <i>originalFilePath </i>| folder <i>orginalFolderPath</i>}</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
    <synonym>new alias</synonym>
  </synonyms>
  <classification>
    <category>Files, Folders, &amp; Resources</category>
  </classification>
  <references>
    <command tag="revMoveFolder">revMoveFolder Command</command>
    <function tag="aliasReference">aliasReference Function</function>
    <command tag="create folder">create folder Command</command>
    <property tag="defaultFolder">defaultFolder Property</property>
    <command tag="rename">rename Command</command>
    <command tag="revCopyFolder">revCopyFolder Command</command>
    <command tag="revCopyFile">revCopyFile Command</command>
  </references>
  <history>
    <introduced version="1.1">Added.</introduced>
    <changed version="2.9"></changed>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
    <disk access="???"/>
  </security>
  <summary>Makes a new <glossary tag="alias">alias</glossary>, <glossary tag="symbolic link">symbolic link</glossary>, or <glossary tag="shortcut">shortcut</glossary> to the specified <keyword tag="file">file</keyword> or folder.</summary>
  <examples>
    <example>create alias "Music Shortcut" to file "Music"</example>
    <example>create alias preferredFileLocation to file "../Startup"</example>
    <example>create alias "Photographs" to folder "Pictures"</example>
  </examples>
  <description>
    <p>Use the <b>create alias</b> <glossary tag="command">command</glossary> to create a second icon for a <keyword tag="file">file</keyword> or folder, in a location that is handier for the user.</p><p/><p><b>Parameters:</b></p><p>The <i>aliasPath</i> specifies the <glossary tag="file path">name and location</glossary> of the <glossary tag="alias">alias</glossary> to be created. If you specify a name but not a location, the <glossary tag="alias">alias</glossary> is created in the <property tag="defaultFolder">defaultFolder</property>.</p><p/><p>The <i>originalFilePath/originalFolderPath</i> is the <glossary tag="file path">name and location</glossary> of the <keyword tag="file">file</keyword>/folder you want to make an <glossary tag="alias">alias</glossary> to. If you specify a name but not a location, LiveCode assumes the <keyword tag="file">file</keyword> is in the <property tag="defaultFolder">defaultFolder</property>.</p><p/><p><b>Comments:</b></p><p>You cannot create an alias to a disk volume.</p><p/><p>To find out which file an alias refers to, use the <b>aliasReference</b> <control_st tag="function">function</control_st>.</p><p/><p><img src="202653"/> <b>Important!</b> When creating an <glossary tag="alias">alias</glossary> on <glossary tag="Windows">Windows systems</glossary>, make sure the <glossary tag="alias">alias's</glossary> name ends with the <glossary tag="extension">extension</glossary> ".lnk" to ensure that it behaves properly when the user double-clicks it.</p>
  </description>
</doc>