chDir( ) Function

Description:
  The chDir() function changes the default sub-directory to cDir.  

Syntax:
  retval = chDir( cDir )

Parameters:
  string: cDir Directory to make the new default.
  numeric: retval 1 if directory changed successfully, 0 if failure

Platforms:
  Windows, DOS, Internet Active Pages



Example:

	local var1, var2, var3, retval
	var1 = prompt( "Drive to change ", "C", 1 )
	var2 = curdir( var1 )
	var3 = prompt( "Change from " + var2 + " to:", "", 50 )
	retval = chDir( var3 ) 

	println( "The Default Directory was " + var2 )
	println( "The new Default directory is " + var3 )

  

(c) 2000-2001 by West Coast Web Adventures, Inc., All Rights Reserved