Description
This tool sets the current current input and output working directories. If you specify the default working directories using this command, then you do not have to specify these paths in any other commands as the tool will look for them in the working directory. This concept is very similar to the R 'setwd' command but here you can specify different default input and output directories. Using this command is highly recommended as it can greatly reduce the amount of typing you need to do when writing a command.
Note that these directories must exist before you run this command (this tool does not create new directories if they do not exist).
Syntax
setwd(in and/or out, or all);
| in | the path of the default input working directory | |
| out | the path of the default output working directory | |
| all | the path of the default input and output working directory |
Example
setwd(in="C:\data\gis");
setwd(out="C:\data\analysis");
setwd(in="C:\data\gis", out="C:\data\analysis");
setwd(all="C:\data\gis");
Current input working directory:
C:\data\gis
Current output working directory:
C:\data\analysis