SetCurrentDir

Description:

baSetCurrentDir sets the current directory.

Platforms:

Windows

Usage:

Result = baSetCurrentDir( Dir )

Arguments:

String.
Dir is the full path name of the directory to make current.

Returns:

Integer.
Returns 1 if successful, else 0.

Examples:

Director:
OK = baSetCurrentDir( "c:\temp" )

Authorware:
OK := baSetCurrentDir( "c:\\temp" )
 

Notes:

This function is useful when running external programs using the baRunProgram function. Some programs, particularly DOS ones, require the current directory to be set first. The current directory can be retrieved using the baSysFolder function.
 

See also:

SysFolder