Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > File I/O Methods in eScript > Clib.getcwd() MethodThis method returns the entire path of the current working directory for a script. SyntaxReturnsThe entire path of the current working directory for a script. UsageIn a Siebel application, the default current working directory is the directory in which the application has been installed. If a script changes the current working directory (using Clib.chdir() or similar command), the current working directory returns to its original value when the script finishes. ExampleIn this example, the current directory is displayed in a message box. The script then makes the root the current directory, creates a new directory, removes that directory, and then attempts to make the removed directory current. var currDir = Clib.getcwd(); The output displayed in the message boxes is as follows:
See AlsoClib.clearerr() Method |
Siebel eScript Language Reference |