GME

Geospatial Modelling Environment

system (Execute System Command)

Executes a system command via a command prompt

Description

This command executes a system command via the command prompt. Like the r() command, the system() command is different from most other GME commands in that it takes the text within the parentheses and executes it directly, without any interpretation of the text. For this reason you should not enclose the command text within quotes: write the system commands here exactly as you would write them at the command prompt. This command waits for the command to finish before continuing, but performs no checks regarding the success or failure of the execution of the system command.

It is recommended that for all but the simplest system commands that you call a batch file.

Syntax

system(command);

commandSystem command to be executed (not in quotes)

Example

system(notepad.exe);

system(notepad.exe "C:\data\instructions.txt");

system(C:\data\script.bat);


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