Book a Demo

Author Topic: Open an attachment with VBScript (Beta2.1)  (Read 3584 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Open an attachment with VBScript (Beta2.1)
« 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
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Open an attachment with VBScript (Beta2.1)
« Reply #1 on: December 07, 2012, 02:29:46 am »
Hello,

with:

objShell.run( filename,1,true )

it works.

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)