File browser : run external program

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "RoKet"
    Altair Employee
    Updated by RoKet

    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

    User: "manoj kandukuri"
    Altair Employee
    Updated by manoj kandukuri

    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

     

     

    User: "manoj kandukuri"
    Altair Employee
    Updated by manoj kandukuri

    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