Core Function CurDir
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> CurDir ( <path> ) </pre> === Description === Get or Set the current working directory. === Parameters === ==== path ==== The path to use. === Return Value === ==== W...") |
m (1 revision) |
||
(2 intermediate revisions by one user not shown) | |||
Line 11: | Line 11: | ||
==== path ==== | ==== path ==== | ||
− | The path to use. | + | Optional; The path to use. |
=== Return Value === | === Return Value === |
Latest revision as of 12:37, 14 June 2015
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() );