<?xml version="1.0"?>
<OriginStorage Label="" Display="652"><XFname NodeID="11" Label="Name" DataID="300">cd</XFname><xFdescription NodeID="11" Label="Description" DataID="310">:Change or show working directory</xFdescription><attachTo NodeID="13" Label="Attach to Origin Object" Combo="None|Auto|Column|Sheet/Layer|Book/Graph" DataID="320" Show="0">1</attachTo><author NodeID="11" Label="Author" DataID="314"></author><AutoDependent NodeID="10" Label="Auto Compile Dependent Files" DataID="451">0.</AutoDependent><UsageCtxt NodeID="268435456" Label="Usage Context" DataID="329"><LabTalk NodeID="10" Label="Labtalk" DataID="357">1.</LabTalk><WksSel NodeID="10" Label="Worksheet Selection" DataID="350">0.</WksSel><GrObj NodeID="268435456" Label="Graphic Object Events" DataID="330" Use="0"><InitAnchors NodeID="10" Label="Initialization" DataID="339">1.</InitAnchors><Move NodeID="10" Label="Move" DataID="331">1.</Move><Moving NodeID="10" Label="Moving" DataID="332">0.</Moving><Resize NodeID="10" Label="Resize" DataID="333">0.</Resize><Resizing NodeID="10" Label="Resizing" DataID="334">0.</Resizing><Delete NodeID="10" Label="Delete" DataID="335">0.</Delete><Select NodeID="10" Label="Select" DataID="336">0.</Select><Unselect NodeID="10" Label="Unselect" DataID="337">0.</Unselect><BtnClick NodeID="10" Label="Button Click" DataID="338">0.</BtnClick><Rotate NodeID="10" Label="Rotate" DataID="340">0.</Rotate><Rotating NodeID="10" Label="Rotating" DataID="341">0.</Rotating><Skew NodeID="10" Label="Skew" DataID="342">0.</Skew><Skewing NodeID="10" Label="Skewing" DataID="343">0.</Skewing><EditEv NodeID="10" Label="Edit" DataID="344">0.</EditEv><Editing NodeID="10" Label="Editing" DataID="345">0.</Editing><NewSelection NodeID="10" Label="New Selection" DataID="346">0.</NewSelection><DeletePart NodeID="10" Label="Delete Part" DataID="347">0.</DeletePart><Keyboard NodeID="10" Label="Keyboard" DataID="348">0.</Keyboard><ObjType NodeID="13" Label="Type" Combo="Rect|Line" DataID="349">0.</ObjType></GrObj><Theme NodeID="268435456" Label="Theme" DataID="386"><UseInDialog NodeID="10" Label="Support Saving Themes in Dialog" DataID="372">1.</UseInDialog><ShowInMenu NodeID="10" Label="Show Themes as Popups in Menu" DataID="352">1.</ShowInMenu><SaveInBook NodeID="10" Label="Support Saving to Book" DataID="387">0.</SaveInBook><SaveInSheet NodeID="10" Label="Support Saving to Sheet" DataID="388">0.</SaveInSheet></Theme><mainmenu NodeID="268435456" Label="Menus" DataID="365" Use="0" BranchCombo="None|Main Menus|Context Menus|Both|Context Menus 1|Context Menus 2|Context Menus 3|Context Menus 4"><AddAsTool NodeID="10" Label="Add As Tool" DataID="366">0.</AddAsTool><ClassOp NodeID="10" Label="Class Operation" DataID="367">0.</ClassOp><GetN NodeID="13" Label="Auto GetN Dialog" Combo="None|Simple GetNBox|GetNGraphBox with Preview|GetNImageBox|Wizard|Custom" DataID="371">0</GetN><CustomDialog NodeID="11" Label="Custom Dialog Function" DataID="395" Show="0"></CustomDialog><DlgFromMenu NodeID="10" Label="Open Dialog from Menu for Option Index" DataID="374">1.</DlgFromMenu><checkMenu NodeID="10" Label="Check Menu" DataID="470">0.</checkMenu></mainmenu><windows NodeID="268435456" Label="Windows" DataID="450" Use="0"><graph NodeID="10" Label="Graph" DataID="368">0.</graph><worksheet NodeID="10" Label="Worksheet" DataID="369">0.</worksheet><matrix NodeID="10" Label="Matrix" DataID="370">0.</matrix><report NodeID="10" Label="Report" DataID="360">0.</report><none NodeID="10" Label="Layout" DataID="359">0.</none><none NodeID="10" Label="None" DataID="361">0.</none></windows></UsageCtxt><outTree NodeID="10" Label="Generate LabTalk Tree upon execution" DataID="373">1.</outTree><askOutResultsLog NodeID="10" Label="Add Checkbox to Auto GetN Dialog about Results Log Output" DataID="393">0.</askOutResultsLog><outResultsLog NodeID="13" Label="Output to Results Log upon execution" Combo="None|All|Report Tree|First Input|First Output|All Outputs|All Except Trees" DataID="394">0.</outResultsLog><customButtons NodeID="11" Label="GetN Dialog Custom Buttons" DataID="391"></customButtons><syntax NodeID="41" Label="Command Line Usage" DataID="305" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="2-18">1. cd;
2. cd newpath:=c:\c\proj1;
3. cd newpath:="c:\my proj-1";
4. cd result:=aa;
5. cd newpath:="c:\my proj1" result:=aa;
6. cd newpath:="" result:=aa;</syntax><vars NodeID="268435456" Label="Variables" Branch="1"><v1 _XFUNCTION_VAR="1" RepeatID="1"><name NodeID="11" Label="Name" DataID="10">newpath</name><description NodeID="11" Label="Label" DataID="20" Show="0"></description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">string</type><valdata NodeID="11" Label="Data" DataID="50" Enable="1">&lt;unassigned&gt;</valdata><comboString NodeID="11" Label="Control" DataID="70"></comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69"></optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">This folder will become the new working directory.
Double quotes are required if the path has a space or dash in it.
To clear working directory, use empty path in double quotes "".
If newfolder is not defined, the current working folder is displayed and refreshed.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">New working directory</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">このフォルダが新しい作業ディレクトリになります。
パスにスペースやハイフンが含まれる場合、ダブルクォーテーションで囲む必要があります。
作業ディレクトリの設定を消去するには、ダブルクォーテーションで空白のパスを使います。
新しいフォルダが定義されていない場合、現在の作業ディレクトリが表示され、リフレッシュされます。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">新しい作業ディレクトリ</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Dieser Ordner wird zum neuen Arbeitsverzeichnis.
Falls der Pfad Leerzeichen oder Bindestriche enthält werden Anführungszeichen benötigt.
Um das Arbeitsverzeichnis zu löschen, verwenden Sie ein Leerzeichen in Anführungszeichen " ".
Falls kein neuer Ordner definiert wird, wird das aktuelle Arbeitsverzeichnis angezeigt und aktualisiert.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Neues Arbeitsverzeichnis</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v1><v2 _XFUNCTION_VAR="1" RepeatID="2"><name NodeID="11" Label="Name" DataID="10">result</name><description NodeID="11" Label="Label" DataID="20" Show="0"></description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">1</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">string</type><valdata NodeID="11" Label="Data" DataID="50" Enable="1">&lt;optional&gt;</valdata><comboString NodeID="11" Label="Control" DataID="70"></comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69"></optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Outputs the working directory into a string variable.
cd result:=aa puts working directory into variable aa$.
aa$ now stores the working directory.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Output result</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">作業ディレクトを文字列変数に出力します。
cd result:=aa は、作業ディレクトリを変数 aa$に代入します。
aa$には、作業ディレクトリが保存されます。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">出力結果</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Gibt das Arbeitsverzeichnis in eine Zeichenkettenvariable aus.
cd result:=aa speichert das Arbeitsverzeichnis in eine Variable aa$.
aa$ speichert jetzt das Arbeitsverzeichnis.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Ergebnisausgabe</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v2></vars><modificationLog NodeID="41" Label="Modification Log" DataID="438" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="2-15">2007-08-16 Fisher. Edit</modificationLog><codes NodeID="268435456" Label="Code" DataID="324"><rettype NodeID="11" Label="Return Type" Combo="void|int|double|string|vector" DataID="41">void</rettype><header NodeID="45" Label="Header" DataID="323" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="3-15"><![CDATA[
//put additional include files here

/* Modification Log:															*
* Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE								*
*/

//put your own support static functions here
#define CDSET_INI_SECTION "cdset"

///Joseph 06/26/07 FIX_BUG_DOT_DOT_NOT_WORK
static bool _is_path_unassigned(LPCSTR lpcszPath)
{
	string strPath(lpcszPath);
	if(strPath.IsEmpty() || okutil_cvt_str_to_predefined_type(strPath) == PDS_UNASSIGNED)
		return true;
	
	return false;
}

]]></header><code NodeID="45" Label="Expression" DataID="325" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="5-20"><![CDATA[string workingfolder;

///Cheney 2007-7-2 UPDATE_XF_ERR_THROW
string strMsg, strCWD;
ocu_load_msg_str(XF_SYSTEM_CURRENT_WORKING_FOLDER, &strCWD);
///end UPDATE_XF_ERR_THROW

if(_is_path_unassigned(newpath))
{
	workingfolder = okutil_get_custom_path(true);// true means update map 
	if(result) // str variable is specified, default is <optional> which will result into invalid str
	{
		result = workingfolder;
	}
	else
	{
		if(workingfolder.IsEmpty())
		{
			///Cheney 2007-7-2 UPDATE_XF_ERR_THROW
			//printf("%s is not defined\n", STR_C_W_D);
			/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
			//warning_msg_box(XF_CD_UNDIFINE, strCWD, false, 'E');
			XF_THROW_EX(XF_CD_UNDIFINE, strCWD);
			///end UPDATE_XF_ERR_THROW
		}
		else
		{
			/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
			//printf("%s:\n%s\n", strCWD, workingfolder);	
			string str;
			str.Format("%s:\n%s", strCWD, workingfolder);
			warning_msg_box(str, false, 'R');
			///End CLEANUP_XFS_ERROR_CODE
		}
	}
	return;
}	
// only handle 0 - 9 supported
if( newpath.GetLength()==1 && '0'<=newpath[0] && newpath[0]<='9')
{
	int nIndex = atoi(newpath);
	if(0==nIndex)//clear working dir
	{
		okutil_set_custom_path("");
		///Cheney 2007-7-2 UPDATE_XF_ERR_THROW
		//printf("%s is undefined\n", STR_C_W_D);
		/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
		//warning_msg_box(XF_CD_UNDIFINE, strCWD, false, 'E');
		XF_THROW_EX(XF_CD_UNDIFINE, strCWD);
		///End CLEANUP_XFS_ERROR_CODE
		///end UPDATE_XF_ERR_THROW
	}
	else
	{
		INIFile ini;
		string str = ini.ReadString(CDSET_INI_SECTION, newpath);
		if( str.IsEmpty() )
		{
			///Cheney 2007-7-2 UPDATE_XF_ERR_THROW
			//printf("Index %s is not assigned a path\n", newpath);
			/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
			//warning_msg_box(XF_CD_NOT_ASSIGN_PATH, newpath, false, 'E');
			XF_THROW_EX(XF_CD_NOT_ASSIGN_PATH, newpath);
			///End CLEANUP_XFS_ERROR_CODE
			///end UPDATE_XF_ERR_THROW
		}
		else
		{
			string strResolved;
			okutil_resolve_str_expression(str , &strResolved);
			
			if( strResolved.IsPath() )
			{
				okutil_set_custom_path(strResolved);
				if(result)
					result = strResolved;						
				/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
				//printf("%s:\n%s\n", strCWD, strResolved);
				string str;
				str.Format("%s:\n%s", strCWD, strResolved);
				warning_msg_box(str, false, 'R');
				///End CLEANUP_XFS_ERROR_CODE
			}
			else
				///Cheney 2007-7-2 UPDATE_XF_ERR_THROW
				//printf("Index %s is assigned invalid path %s\n", newpath, strResolved);
			{
				ocu_load_msg_str(XF_CD_ASSIGN_INVALID_PATH, &strMsg, newpath, NULL, strResolved);
				/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
				//warning_msg_box(strMsg, false, 'E');
				XF_THROW(strMsg);
				///End CLEANUP_XFS_ERROR_CODE
			}
				///end UPDATE_XF_ERR_THROW
		}					
	}
	return;
}
//-- go back one directory
if(0==newpath.Compare("..")|| 0==newpath.Compare("..\\"))
{
	workingfolder = okutil_get_custom_path();
	if( workingfolder.ReverseFind('\\') == workingfolder.GetLength()-1)
		workingfolder.Delete(workingfolder.GetLength()-1, 1);
	int nBackslash = workingfolder.ReverseFind('\\');
	string newworkdir = workingfolder.Left(nBackslash+1);
	if(newworkdir.IsPath())
	{
		okutil_set_custom_path(newworkdir);
		if(result)
			result = newworkdir;
		/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
		//printf("%s:\n%s\n", strCWD, newworkdir);
		string str;
		str.Format("%s:\n%s", strCWD, newworkdir);
		warning_msg_box(str, false, 'R');
		///End CLEANUP_XFS_ERROR_CODE
	}
	else
	{
		///Cheney 2007-7-2 UPDATE_XF_ERR_THROW
		//printf("%s: parent path invalid\n",newworkdir); 
		/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
		//warning_msg_box(XF_CD_PARENT_PATH_INVALID, newworkdir, false, 'E');
		XF_THROW_EX(XF_CD_PARENT_PATH_INVALID, newworkdir);
		///End CLEANUP_XFS_ERROR_CODE
		///end UPDATE_XF_ERR_THROW
	}
	return;
}
else if(0==newpath.Compare("\\")) // \ means go to root "c:\" or "\\name\"
{
	workingfolder = okutil_get_custom_path();
	string newworkdir;
	if( 1 == workingfolder.Find(":") && 2 == workingfolder.Find("\\")) // have "c:\"
		newworkdir = workingfolder.Left(2+1);
	else if( 0 == workingfolder.Find("\\\\") ) // have "\\name\"
	{
		int nPos = workingfolder.Find("\\", 2);
		if (nPos<0)
			nPos=workingfolder.GetLength(); 
		newworkdir = workingfolder.Left(nPos+1);	
	}
	if(newworkdir.IsPath())
	{
		okutil_set_custom_path(newworkdir);
		if(result)
			result = newworkdir;
		
		/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
		//printf("%s:\n%s\n", strCWD, newworkdir);
		string str;
		str.Format("%s:\n%s", strCWD, newworkdir);
		warning_msg_box(str, false, 'R');
		///End CLEANUP_XFS_ERROR_CODE
	}
	else
	{
		///Cheney 2007-7-2 UPDATE_XF_ERR_THROW
		//printf("%s could not be applied to %s\n", newpath, STR_C_W_D);
		ocu_load_msg_str(XF_CD_ASSIGN_INVALID_PATH, &strMsg, newpath, NULL, strCWD);
		/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
		//warning_msg_box(strMsg, false, 'E');
		XF_THROW(strMsg);
		///end UPDATE_XF_ERR_THROW
	}
	return;
}
// eliminate strings like /, \\, ..., are invalid but still accepted IsPath(), 
// ex c:\Origin\... is accepted by IsPath
else if(	0==newpath.Compare("/")
		|| 0==newpath.Compare(".")
		|| 0==newpath.Compare(".\\")
		//|| 0==newpath.Find("..")
		|| 0<=newpath.Find("...")
		|| 0==newpath.Compare("\\\\") // but "\\\\unc\\share" allowed
		|| 0<newpath.Find("\\\\")
		|| 0<=newpath.Find("\\\\\\")
		) 
{
	///Cheney 2007-7-2 UPDATE_XF_ERR_THROW		
	//printf("%s is not a valid path or subdirectory\n", newpath);
	/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
	//warning_msg_box(XF_CD_INVALID_PATH_OR_SUBDIR, newpath, false, 'E');
	XF_THROW_EX(XF_CD_INVALID_PATH_OR_SUBDIR, newpath);
	///End CLEANUP_XFS_ERROR_CODE
	///end UPDATE_XF_ERR_THROW
	return;
}
//-- user entered path
string strNewpathResolved;
okutil_resolve_str_expression(newpath , &strNewpathResolved);
// If user enters relative path, create full path relative to custom path.
// otherwise IsPath() will examine it relative to another choice of cwd 
if(!strNewpathResolved.IsEmpty() &&  1!=strNewpathResolved.Find(":\\") && 0!=strNewpathResolved.Find("\\\\") )
{
	workingfolder = okutil_get_custom_path();
	workingfolder=workingfolder+strNewpathResolved;
	strNewpathResolved = workingfolder;
	
}
if(strNewpathResolved.IsPath())
{
	okutil_set_custom_path(strNewpathResolved);
	if(result)
		result = strNewpathResolved;
	
	/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
	//printf("%s:\n%s\n", strCWD, strNewpathResolved);
	string str;
	str.Format("%s:\n%s", strCWD, strNewpathResolved);
	warning_msg_box(str, false, 'R');
	///End CLEANUP_XFS_ERROR_CODE
}
else
{
	if(!strNewpathResolved.IsEmpty())
	{
		///Cheney 2007-7-2 UPDATE_XF_ERR_THROW
		//printf("%s is not a valid path.\n", strNewpathResolved);
		/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
		//warning_msg_box(XF_CD_NOT_VALID_PATH, strNewpathResolved, false, 'E');
		XF_THROW_EX(XF_CD_NOT_VALID_PATH, strNewpathResolved);
		///End CLEANUP_XFS_ERROR_CODE
		///end UPDATE_XF_ERR_THROW
	}
	else 
	{
		// the user entered empty string ""
		// This means set custom path to empty
		okutil_set_custom_path("");
		///Cheney 2007-7-2 UPDATE_XF_ERR_THROW
		//printf("%s is undefined\n", STR_C_W_D);
		/// Iris 10/21/2010 ORG-1303 CLEANUP_XFS_ERROR_CODE
		//warning_msg_box(XF_CD_UNDIFINE, strCWD, false, 'E');
		XF_THROW_EX(XF_CD_UNDIFINE, strCWD);			
		///End CLEANUP_XFS_ERROR_CODE
		///end UPDATE_XF_ERR_THROW
	}
}
]]></code><event1 NodeID="45" Label="Event1" DataID="327" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="5-20" Show="0"><![CDATA[]]></event1><event2 NodeID="45" Label="Event2" DataID="376" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="5-20" Show="0"><![CDATA[]]></event2><event3 NodeID="45" Label="Event3" DataID="378" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="5-20" Show="0"><![CDATA[]]></event3><event4 NodeID="45" Label="Event4" DataID="377" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="5-20" Show="0"><![CDATA[]]></event4><GetNEvent NodeID="47" Label="GetNBox Event" DataID="379" Show="0"></GetNEvent></codes><SaveInOpj NodeID="10" Label="Save with Object" DataID="560">0.</SaveInOpj><optargindex NodeID="14" Label="Option Argument Index" DataID="72">0.</optargindex><version NodeID="14" Label="Version" DataID="73">1.</version><category NodeID="11" Label="Primary Category" DataID="74" Show="0">Working</category><subcategory NodeID="11" Label="Primary Subcategory" DataID="77" Show="0"></subcategory><seccategory1 NodeID="11" Label="Secondary Category" DataID="75" Show="0"></seccategory1><secsubcategory1 NodeID="11" Label="Secondary Subcategory 1" DataID="78" Show="0"></secsubcategory1><seccategory2 NodeID="11" Label="Secondary Category 2" DataID="76" Show="0"></seccategory2><secsubcategory2 NodeID="11" Label="Secondary Subcategory 2" DataID="79" Show="0"></secsubcategory2><module NodeID="11" Label="Module" DataID="80"></module><subGroup NodeID="17" Label="Subgroup Index Within a Category" Combo="-10|-9|-8|-7|-6|-5|-4|-3|-2|-1|0|1|2|3|4|5|6|7|8|9" DataID="82">5.</subGroup><errmsgCount NodeID="14" Label="Number of Error Messages" DataID="412">0.</errmsgCount><helpe NodeID="268435456" Label="English Help" DataID="420" RepeatID="256"><info NodeID="41" Label="Auto Complete Hint" DataID="422" RowHeightRange="2-8">Change or show working directory</info><summary NodeID="47" Label="Summary" DataID="421" Show="0"><![CDATA[]]></summary><example NodeID="47" Label="Examples" DataID="431" Show="0"><![CDATA[]]></example><ref NodeID="47" Label="References" DataID="432" Show="0"><![CDATA[]]></ref><algorithm NodeID="47" Label="Algorithm" DataID="434" Show="0"><![CDATA[]]></algorithm><parameters NodeID="47" Label="Parameters" DataID="444" Show="0"><![CDATA[]]></parameters><script NodeID="41" Label="LabTalk Script Example" Show="0" DataID="436" RowHeightRange="2-12"></script><errmsgs NodeID="47" Label="Error Messages" DataID="413" Show="0"></errmsgs></helpe><helpj NodeID="268435456" Label="Japanese Help" DataID="420" RepeatID="512"><description NodeID="11" Label="Description" DataID="440" CdPg="932">:作業ディレクトリを変更または表示</description><customButtons NodeID="11" Label="GetN Dialog Custom Buttons" DataID="448" CdPg="932"></customButtons><info NodeID="41" Label="Auto Complete Hint" DataID="422" RowHeightRange="2-8" CdPg="932">???????????????????</info><summary NodeID="47" Label="Summary" DataID="421" Show="0" CdPg="932"><![CDATA[]]></summary><example NodeID="47" Label="Examples" DataID="431" Show="0" CdPg="932"><![CDATA[]]></example><ref NodeID="47" Label="References" DataID="432" Show="0" CdPg="932"><![CDATA[]]></ref><algorithm NodeID="47" Label="Algorithm" DataID="434" Show="0" CdPg="932"><![CDATA[]]></algorithm><parameters NodeID="47" Label="Parameters" DataID="444" Show="0" CdPg="932"><![CDATA[]]></parameters><script NodeID="41" Label="LabTalk Script Example" Show="0" DataID="436" RowHeightRange="2-12" CdPg="932"></script><errmsgs NodeID="47" Label="Error Messages" DataID="413" Show="0" CdPg="932"></errmsgs></helpj><helpg NodeID="268435456" Label="German Help" DataID="420" RepeatID="768"><description NodeID="11" Label="Description" DataID="440" CdPg="1252">:Ändern oder anzeigen des Arbeitsverzeichnisses</description><customButtons NodeID="11" Label="GetN Dialog Custom Buttons" DataID="448" CdPg="1252"></customButtons><info NodeID="41" Label="Auto Complete Hint" DataID="422" RowHeightRange="2-8" CdPg="1252">ändern oder anzeigen des Arbeitsverzeichnisses</info><summary NodeID="47" Label="Summary" DataID="421" Show="0" CdPg="1252"><![CDATA[]]></summary><example NodeID="47" Label="Examples" DataID="431" Show="0" CdPg="1252"><![CDATA[]]></example><ref NodeID="47" Label="References" DataID="432" Show="0" CdPg="1252"><![CDATA[]]></ref><algorithm NodeID="47" Label="Algorithm" DataID="434" Show="0" CdPg="1252"><![CDATA[]]></algorithm><parameters NodeID="47" Label="Parameters" DataID="444" Show="0" CdPg="1252"><![CDATA[]]></parameters><script NodeID="41" Label="LabTalk Script Example" Show="0" DataID="436" RowHeightRange="2-12" CdPg="1252"></script><errmsgs NodeID="47" Label="Error Messages" DataID="413" Show="0" CdPg="1252"></errmsgs></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="420" RepeatID="1024"><description NodeID="11" Label="Description" DataID="440" CdPg="936"></description><customButtons NodeID="11" Label="GetN Dialog Custom Buttons" DataID="448" CdPg="936"></customButtons><info NodeID="41" Label="Auto Complete Hint" DataID="422" RowHeightRange="2-8" CdPg="936"></info><summary NodeID="47" Label="Summary" DataID="421" Show="0" CdPg="936"><![CDATA[]]></summary><example NodeID="47" Label="Examples" DataID="431" Show="0" CdPg="936"><![CDATA[]]></example><ref NodeID="47" Label="References" DataID="432" Show="0" CdPg="936"><![CDATA[]]></ref><algorithm NodeID="47" Label="Algorithm" DataID="434" Show="0" CdPg="936"><![CDATA[]]></algorithm><parameters NodeID="47" Label="Parameters" DataID="444" Show="0" CdPg="936"><![CDATA[]]></parameters><script NodeID="41" Label="LabTalk Script Example" Show="0" DataID="436" RowHeightRange="2-12" CdPg="936"></script><errmsgs NodeID="47" Label="Error Messages" DataID="413" Show="0" CdPg="936"></errmsgs></helpc><SkipHiddenInDlg NodeID="10" Label="Skip hidden in dialog" DataID="295">0.</SkipHiddenInDlg><ClearMsg NodeID="10" Label="Auto Clear Error Message in dialog" DataID="296">1.</ClearMsg><KeepBtnStatus NodeID="10" Label="Keep Button Status for Event Handler" DataID="298">0.</KeepBtnStatus><SptApplyUndoButtonSts NodeID="10" Label="Control Apply and Undo button by User" DataID="294">0.</SptApplyUndoButtonSts><PreviewButton NodeID="10" Label="Show Preview Button" DataID="299">0.</PreviewButton><AutoApplyChkbox NodeID="10" Label="Show Auto Apply CheckBox" DataID="290">1.</AutoApplyChkbox><SkipHelpDoc NodeID="10" Label="Skip Help Document Processing" DataID="297">0.</SkipHelpDoc><SupportFolderLastUsed NodeID="10" Label="Support Folder Last Used Theme" DataID="291">0.</SupportFolderLastUsed><NotCloseOnEnterKey NodeID="10" Label="Do not Close Dialog upon Enter Key" DataID="292">0.</NotCloseOnEnterKey><seeAlso NodeID="11" Label="See Also" DataID="430">dir, cdset</seeAlso><relatedXF NodeID="11" Label="Related X-Functions" DataID="442">dir, cdset</relatedXF></OriginStorage>
