Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Helmut Ortmann on November 27, 2012, 05:46:01 pm

Title: Open an attachment with VBScript (Beta2.1)
Post by: Helmut Ortmann on November 27, 2012, 05:46:01 pm
Hello,

I tried to open an attachment (*.xls file) with the following snippet:
Code: [Select]
filename = """" & file.Name & """"
objShell.run( filename )
Session.Output "Filename:" & filename
Set objShell = Nothing

In Debug mode it works. In non Debug mode nothing apart from printing the message happened.

Thanks,

Helmut
Title: Re: Open an attachment with VBScript (Beta2.1)
Post by: Helmut Ortmann on December 07, 2012, 02:29:46 am
Hello,

with:

objShell.run( filename,1,true )

it works.

Kind regards,

Helmut