GME

Geospatial Modelling Environment

setwd (Set Working Directory)

Sets the current current input and output working directories

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, out, all);

inthe path of the default input working directory
outthe path of the default output working directory
allthe 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


Messages

Please consider making a purchase to support the continued development of these tools  Read more...

Tips on how to use this interface efficiently  Read more...

Links

Open Source GIS

Copyright © 2001-2014 Hawthorne L. Beyer, Ph.D., Spatial Ecology LLC    Connect on LinkedIn