ERROR
The avenue request 'System.Execute' may result in the following error:STOP: The system is out of memory or resources.
There is an extra set of double quotes inside the parentheses in the 'CommandLine' argument. This seems to be particularly prevalent when there are multiple arguments in the 'CommandLine' parameter for the request.
Code:
System.Execute("C:\temp\test.exe /O")
Note:
This works fine.
Code:
arg1 = "C:\temp\text.exe /O"
System.Execute(arg1)
Note:
This works fine.
Code:
arg1 = "C:\temp\test.exe /0"
arg2 = arg1.quote
System.Execute(arg2)
Note:
This causes the error.
Code:
System.Execute("C:\temp\test.exe")
Note:
This works fine.
Code:
arg1 = "C:\temp\text.exe"
System.Execute(arg1)
Note:
This works fine.
Code:
arg1 = "C:\temp\test.exe"
arg2 = arg1.quote
System.Execute(arg2)
Note:
This works fine.
Article ID:000004907
Get help from ArcGIS experts
Download the Esri Support App