AnsweredAssumed Answered

ArcMap hyperlink to run an exe and pass some parameters to the exe

Question asked by vandervoort on Apr 10, 2012
Latest reply on Apr 12, 2012 by geonetadmin
In a cmd tool I would have something like: D:\temp\ParameterPassing\ParameterPassing.exe one two three where one two three gets passed to ParameterPassing.exe to do some work.

I want a hyperlink in ArcMap that would do the same thing based on some values in a feature's attribute table. Different exe's get fired for different rows, the table has a field called "HYPERLINK2" that I set up using a Script hyperlink. The scropt that gets fired looks like this:

Function OpenLink ([HYPERLINK2])
Dim path
Dim objShell path = [HYPERLINK2]
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute path, "", "", "open", 1
End Function


A value of the HYPERLINK2 field may look something like D:\temp\ParameterPassing\ParameterPassing.exe 5116. The hyperlink mouseOver looks like: [ATTACH=CONFIG]13393[/ATTACH]

The ERROR is:
[ATTACH=CONFIG]13394[/ATTACH]

There's some documentation (http://help.arcgis.com/en/arcgisdesktop/10.0/help/00s5/00s500000004000000.htm) about using parameters to control how a program opens a hyperlinked document that describes using a "?" between parameters, but I can't get that fire the exe with the parameter
[ATTACH=CONFIG]13395[/ATTACH]
[ATTACH=CONFIG]13396[/ATTACH]

What's the secret, how do I get this to work?

TIA

Attachments

Outcomes