Click or drag to resize

CPROJRegisterBackgroundScript Method

Register an OMS script launched from the project

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2025.1.0.25
Syntax
public static void RegisterBackgroundScript(
	string name,
	string name2,
	string script,
	string log,
	int save_log,
	CVV output_files,
	string file_to_delete,
	string process_id
)

public static void RegisterBackgroundScript(
	string name,
	string name2,
	string script,
	string log,
	int save_log,
	CVV output_files,
	string file_to_delete,
	string process_id
)

Parameters

name
Type: SystemString
Name for the process
name2
Type: SystemString
Secondary name for the process
script
Type: SystemString
file name of the script. Script should self-delete to indicate process has completed
log
Type: SystemString
file name of the output log (optional). Will contain info about this script run
save_log
Type: SystemInt32
1 - log file is temporary and deleted on OM close. 0 - do not delete on OM close
output_files
Type: GeoEngine.Core.GXNetCVV
List of output documents created by the script.
file_to_delete
Type: SystemString
File to delete (optional). Will also delete files with same name and .tmp and .xml extensions
process_id
Type: SystemString
Process ID - used to check status or kill the process
Remarks
Allows the project to track the progress/failure/success of scripts launched in the background
See Also