sysDirectory

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
System library
   sysCommand
   sysDate
   sysDateFormat
   sysDateTime
   sysDirectory
   sysElapsed
   sysEnvVar
   sysLoadScript
   sysLoadLibrary
   sysLog
   sysLogFile
   sysLogLevel
   sysPrompt
   sysSleep
   sysSecondsSince
   sysShow
   sysStartDate
   sysStartDateTime
   sysStartTime
   sysStartTimestamp
   sysTime
   sysTimestamp
   sysTrace
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  
sysDirectory(
  [const path])    // new path if supplied

Query or change current working directory. If no arg is passed a query is done. If an arg is passed, the current directory is changed to the path.

Returns fully qualified current working directory in either case.

Examples:

sysLog('current dir is '+sysDirectory());
// May give an output as:
//   current directory is F:\IBKProj\Csl\Kernel
 
try {
   sysDirectory('d:\os2\boot');
}
catch (exc[]) {
   // change directory failed
   ...
}
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>