Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Environment Settings > General settings

Scratch workspace

Release 9.2
Last modified September 4, 2007
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "General settings"


Related Topics

The workspace where tool outputs will be placed if the default output name is used.

Accepting the default path and name for results that will not be permanently maintained places them in the scratch workspace. When the path given for the output parameter is removed and only a name is provided, tool results will be saved into your current workspace if it is set or to the location of the input data if it is not set.

If the current workspace and the scratch workspace are not set, the outputs from tools will, by default, be placed in the location of the input data if this location is not read-only. If this location is read-only, outputs will be placed in your system's default temp directory (generally C:\Documents and Settings\yourlogin\Local Settings\Temp). Another exception is the Feature Class to Coverage tool when the input is a file or personal geodatabase feature class. In this case, with no workspaces set, the output will be placed in the same location as the input field or personal geodatabase.


Usage tips




Command line syntax

An overview of the command line window

ScratchWorkspace <path>


Parameters Explanation Datatype
<path> The workspace where tool outputs will be placed if the default output name is used. Folder | Workspace

Data types for geoprocessing tool parameters

Command line example



ScratchWorkspace c:\temp\temp_output



Scripting syntax

An overview of scripting in geoprocessing

ScratchWorkspace (path)


Parameters Explanation Datatype
path (Required) The workspace where tool outputs will be placed if the default output name is used. Folder | Workspace

Data types for geoprocessing tool parameters

Script example



import arcgisscripting
gp = arcgisscripting.create()

gp.Workspace = "h:/workspace"
gp.ScratchWorkspace = "c:\temp\temp_output"


Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.