<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=HOMEPATH</id>
	<title>HOMEPATH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=HOMEPATH"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=HOMEPATH&amp;action=history"/>
	<updated>2026-09-25T17:29:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=HOMEPATH&amp;diff=727&amp;oldid=prev</id>
		<title>ConvertBot: sets user home directory</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=HOMEPATH&amp;diff=727&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:39Z</updated>

		<summary type="html">&lt;p&gt;sets user home directory&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;sets user home directory&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;path&amp;gt;  Full directory path specification&lt;br /&gt;
&amp;lt;opt&amp;gt;	Option tree name (path is then area)&lt;br /&gt;
&lt;br /&gt;
This routine is used to set the home path.  This is where Midas looks for&lt;br /&gt;
user macros.  For example:&lt;br /&gt;
&lt;br /&gt;
	homepath dua1:[midas.user.projectA]	&amp;lt;-- VMS&lt;br /&gt;
	homepath /home/midas/user/projectA	&amp;lt;-- Unix&lt;br /&gt;
&lt;br /&gt;
Typing HOMEPATH with no argument displays the current home path.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;path&amp;gt; = RESTORE, path will be set to the previous path.&lt;br /&gt;
If &amp;lt;path&amp;gt; = TEST, path will be set to the test area of the sys option tree.&lt;br /&gt;
&lt;br /&gt;
If not the two above special cases, the homepath is set to &amp;lt;path&amp;gt;.&lt;br /&gt;
Under VMS, if &amp;lt;path&amp;gt; does not end in a right square bracket ( ] ) or a&lt;br /&gt;
colon (:) it appends a colon (:).  Under Unix, if &amp;lt;path&amp;gt; does not end in a&lt;br /&gt;
slash ( / ) or tilde ( ~ ) it appends  a slash ( / ) .&lt;br /&gt;
&lt;br /&gt;
If path is not specified then the current setting of the homepath will be&lt;br /&gt;
displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Keeping the HOMEPATH as the current working directory (CWD)&lt;br /&gt;
===========================================================&lt;br /&gt;
  Since NeXtMidas 3.1.0, it is possible to set the HOMEPATH to always be the&lt;br /&gt;
  current work directory (CWD), even if the CWD changes after the HOMEPATH&lt;br /&gt;
  command. For example, if the user has a CWD of &amp;quot;/tmp&amp;quot;, then...&lt;br /&gt;
&lt;br /&gt;
    nM&amp;gt; homepath/cwd&lt;br /&gt;
&lt;br /&gt;
  ...will set the HOMEPATH to &amp;quot;/tmp&amp;quot;. If the user then changes directories, e.g&lt;br /&gt;
  via the NMD command or CD command, the HOMEPATH changes also. For example...&lt;br /&gt;
&lt;br /&gt;
    nM&amp;gt; nmd test sys&lt;br /&gt;
&lt;br /&gt;
  ... then changes the HOMEPATH to $NMROOT/sys/test. To revert back to standard&lt;br /&gt;
  HOMEPATH functionality (i.e. no longer keep in sync with the CWD), simply use&lt;br /&gt;
  the HOMEPATH command without the /CWD switch (or with /CWD=FALSE).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  /CWD     - Sets HOMEPATH to CWD and automatically follow CWD (Since 3.1.0)&lt;br /&gt;
  /NOWARN  - Do not print warning message when an invalid HomePath is specified&lt;br /&gt;
  /RESTORE - restore current to OLDHOMEPATH (same as &amp;lt;path&amp;gt;=RESTORE)&lt;br /&gt;
  /STORE   - store current to OLDHOMEPATH before executing arguments. [DEF=TRUE]&lt;br /&gt;
  /VERBOSE - Display the current home path. [DEF=TRUE]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>