File browser : run external program

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Compose Ver. 2017.3

 

If there are picture file, excel file or pdf file in the directory, we can see those file in the Compose 'File Browser'.

In the Compose 'File browser', how can I open that files through external programs directly (image viewer, excel program, pdf viewer?

 

 

 

 

<?xml version="1.0" encoding="UTF-8"?>fig3.jpg

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • RoKet
    RoKet
    Altair Employee
    edited July 2018

    Hi Seoksan,

     

    I believe it's not possible to run a file directly from file browser with its associated application. You just can open the file as text file (even though it's a binary file).

    In order to get a fast view of an image you can use imshow('filename').

     

    Regards,
    Ronald

  • manoj kandukuri
    manoj kandukuri
    Altair Employee
    edited February 2021

    Hi Seoksan,

    you want to open the file (using its default application) from OML? then you can use 'system' command to open the file. 

     

    example: if you want to open a png file in photo viewer app (which is default application for opening png in my machine), you can do as below

         

    system('demo.png')

     

    this will open the demo.png in Microsoft photo viewer.

     

    same with excel files,pdf as well.  

     

    Thanks,

    Manoj kandukuri

     

     

  • manoj kandukuri
    manoj kandukuri
    Altair Employee
    edited February 2021

    Hi Seoksan,

    you want to open the file (using its default application) from OML? then you can use 'system' command to open the file. 

     

    example: if you want to open a png file in photo viewer app (which is default application for opening png in my machine), you can do as below

         

    system('demo.png')

     

    this will open the demo.png in Microsoft photo viewer.

     

    same with excel files,pdf as well.  

     

    Thanks,

    Manoj kandukuri

     

     

     

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.