sysDirectory

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
System Library
   sysCommand
   sysDate
   sysDirectory
   sysElapsed
   sysEnvVar
   sysLoadScript
   sysLoadLibrary
   sysLog
   sysLogFile
   sysLogLevel
   sysProfile
   sysPrompt
   sysSleep
   sysShow
   sysStartDate
   sysStartTime
   sysSystemProfile
   sysTime
   sysTrace
   sysUserProfile
String Library
Regular Expression Lib.
File Library
Database Library
C API
C++ API
CSS 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\Css\Kernel
 
try {
   sysDirectory('d:\os2\boot');
}
catch (exc[]) {
   // change directory failed
   ...
}
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>