LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening files in default application

Hello

 

I am using the 'Open URL in default browser core.vi' to open a text file. The text file is opened in Notepad as expected on my development computer but when using an exe of the program on a secondary computer, the text file opens in Chrome.

 

It seems to be an issue others have had also but no one has found a solution other than using SystemExec.vi. Some have mentioned a possibility of it being something to do with Labview version. 

 

Default programs for a text file are set to Notepad on both computers 

Development computer is running LabVIEW 2014 SP1 with the latest runtime version being LaBVIEW Runtime 2015 SP1 f3. 

Secondary computer has runtime 2015 SP1 f3 also installed. 

 

Any ideas as to why this is happening and how to fix it would be much appreciated? 

 

Thanks 

 

 

0 Kudos
Message 1 of 3
(2,522 Views)

The IDE seems to be the problem to me because it doesn't behave as the help file for the function indicates. The help file says it displays a URL in the default web browser, which is what you are seeing in the EXE.  I can confirm this behavior in Labview 2012.  However in 2017, this appears to have been fixed because files now open inside the web browser window, and not the default application.  In 2017, if a file is selected that the browser can't open, it will give you the Open With/Save File dialog box that you see when downloading a file from a website.

aputman
0 Kudos
Message 2 of 3
(2,495 Views)

Sorry what is the IDE? Is it possible to fix this?

0 Kudos
Message 3 of 3
(2,469 Views)