Follow

How can I load Surfer in a script using a different SET file?

Use the shell( ) command to specify the SET file on the command line, then use the GetObject( ) command to use the existing instance of Surfer.

 

ExeFile = "c:\program files\golden software\surfer 15\" + "surfer.exe"
SetFile = "c:\program files\golden software\surfer 15\" + "new.set"
Shell(ExeFile+" /Set "+Chr(34)+SetFile+Chr(34),1)
Wait 5
Set Srf = GetObject(,"Surfer.Application")

 

Updated October 9, 2017

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.