Core Function CurDir

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> CurDir ( <path> ) </pre> === Description === Get or Set the current working directory. === Parameters === ==== path ==== The path to use. === Return Value === ==== W...")
 
(Parameters)
Line 11: Line 11:
 
==== path ====
 
==== path ====
  
The path to use.
+
Optional; The path to use.
  
 
=== Return Value ===
 
=== Return Value ===

Revision as of 19:16, 19 April 2012

CurDir ( <path> )

Contents

Description

Get or Set the current working directory.

Parameters

path

Optional; The path to use.

Return Value

With 0 Params

Returns current working directory.

With 1 Param

Success: Returns 1.

Failure: Returns 0.

Remarks

None

Example

println( "Current Directory is: " . CurDir()  );
CurDir("C:/Windows");
println( "Current Directory is: " . CurDir()  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox