Author Topic: How to open html file from a macro ?  (Read 3995 times)

gregos_b

  • Community Member
  • Posts: 53
  • Hero Points: 0
How to open html file from a macro ?
« on: July 08, 2008, 01:18:14 PM »
I'm writing a macro and I need to open a html file (with iexplorer or firefox, it depends of what is installed on the machine).
I've tried :
shell("my_html_file_path");
but nothing append.
Any ideas ?

I have noted that some commands are ok with a dos window and not with "shell" or "dos" function in a macro. If someone could explain me why...
I though that it should.

regards,
Greg
« Last Edit: July 08, 2008, 02:51:11 PM by gregos_b »

MartyL

  • Senior Community Member
  • Posts: 166
  • Hero Points: 29
  • Synergex
Re: How to open html file from a macro ?
« Reply #1 on: July 08, 2008, 03:55:03 PM »
Greg,

It could be that your shell doesn't quite know what to do with that file path. It's more-or-less expecting an executable.

Try giving it something along the lines of:

Code: [Select]
shell("\"C:\\path_to_firefox\\firefox.exe\" my_html_file_path")

gregos_b

  • Community Member
  • Posts: 53
  • Hero Points: 0
Re: How to open html file from a macro ?
« Reply #2 on: July 08, 2008, 04:33:21 PM »
Thanks Marty,

that's ok, but I had to create an environment variable in "vslickconfig.ini" file to get back the path to the web browser in my macro.

Greg,