Using a LabVIEW application as default program for opening files

Google has returned nothing useful on this.  I want to use a built LabVIEW application to open data files from the Windows desktop. It is easy to edit the Windows registry to set the application as default program - but I'm not sure how to set the event in LabVIEW to open the file.  Any suggested reading?
Solved!
Go to Solution.

I have done this before...I have a small LabVIEW .exe which looks at the version of a VI and selects the appropriate version of LabVIEW to open it with if available. It also adds explorer context menu items for allowing you pick a specific version of LabVIEW to open the file with.
This is a rough idea of the registry keys for adding a program to handle specific file types and to add items to the shell menu in the installer:
Add your own 'LabVIEWOpenWithVersion' key and then add the key name to the OpenWithProgids for the file extensions you want to be able to open with your application. The command part looks like this:
Look at the Windows/MSDN help for what the different keys mean and how they are used, I think you can also set a key to make one of your handlers (e.g. Open, openWithLV) the default for the file type.
For getting the file that was opened 'with' your application, use the App.Args property, ignoring the first item (which is always LabVIEW) in the array.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets

Similar Messages

  • Please Help! How do i make MS OFFICE the default programs for opening files

    Hey,
    Someone please tell me how to make MS OFFICE the default for opening up excel, word and pp files....Ever since i migrated all my stuff to my new 24in everything opens up in iwork instead of office, which is really annoying.
    Thanks in advance,
    JW

    Hi skymedic: Quite easy to set the default program actually. Find a file you need to open, single click. then Right Click and select "Get Info". When this window opens, select the program to be used then click "Change All'. Please note you will need to do this for all file types you want to open with Office. EG: .DOC .PPS .PPT .XLS etc..
    Good Luck
    Stedman

  • Set pages to be default program for *.doc files

    Is it possible to set pages to be the default program which my computer will ALWAYS use to open a MS word document? In windows i could set default programs for specific file types, e.g. .jpg, .mpg, mp3. I did not have to assign a program to open the program every single time. As far as I can tell , I have had to request pages to open my word documents every time i open a word doc. for the first time. Although I can set pages to be the default program for that one file, i want it set to ALWAYS OPEN ALL WORD DOCS. , until further specified. Any suggestions?
    thx.

    Highlight a known Word document in the Finder, highlight it & choose Get Info from the File menu. In the Get Info box, click the triangle next to "Open With." Click on this drop-down menu & choose Pages. If Pages is not a choice, choose "Other" & navigate to the Pages application. Now click the "Change" button under the text that asks if you want to open all documents like this with Pages. You can then double-click the Word documents & they will open in Pages. Note that the icon for the Word files will have a plain, white icon.

  • Choosing Default Program for Opening .doc files

    Hi all,
    A couple of days ago I somehow managed to change my default program for opening .doc files to Pages and I would rather use Microsoft Word as the default. I dont know how I ended up changing this default, but I would like to know how to put the default back to MS Word.
    Thanks for any help!

    Choose any one of the files you want to change. Then, command-i to "Get Info". Open the disclosure triangle under "Open With" choose "Microsoft Word" then click on "Change All".
    -mj
    [email protected]

  • Making Pages the default program for opening text documents

    How do I make Pages the default program for opening text documents? Every time I open a text doc it launches in TextEdit. This must be an easy fix, but I can't seem to figure it out.

    Select a text document > Menu > File > Info > Open With > Browse into your appliCations folder > iWork > Pages > OK > Change All…+
    Peter

  • How to set default program for pdf files

    I was wondering if anyone knows how to change the default program for opening a file type. For example I would like to set Adobe Acrobat as my default program for opening pdf files instead of preview
    thanks

    Hi and Welcome to Apple Discussions
    Control-click a pdf file and choose "Get Info". In the Info window choose which application to open the file with and then click on the "change all" button. Voila!
    Matthew Whiting

  • Pages as default program for text files

    I don't want pages to be the default program for opening word files, how can I change it back to Text Editor?

    Select a document in the Finder, choose Get Info from the File menu, click on Open With, select the desired application, and press the Change All button.
    (85631)

  • How do i change default program for opening mp3 files

    Hi all, i would like to change the default program for opening MP3 files, it is currently iTunes, i would like it to be MPlayerX or QuickTimePlayer, ii am sure it is easy once i know where to look, it is easy in Windose, is has just got to be easier with my Apple
    Tim

    Tim,
    Right click on one of your MP3 files and select "get info".  In the get info screen you can select the default program to open the file.  Then select Change All..  to make it the default for all MP3s.
    Regards,
    Captfred

  • How do I make Pages the default program for .doc files?

    How do I make Pages the default program for .doc files without having the need to change the default program for each individual.doc file?

    Navigate to a .doc file.
    Ctrl click the file
    Choose Open with and then go down the list, past pages, to other
    Navigate to pages
    Before you click Open make sure you click the 'Always open with' check box.
    You should be okay.
    You can do a similar think by selecting the file, Choosing File-Get Info
    Then open the Open With Disclosure triangle.
    select pages and then click CHANGE ALL
    Hope this hleps.
    M.

  • How to set default program to open file types

    What I am wanting to do is be able to open music saved in Apple Lossless format in other than iTunes, say in maybe Quicktime. I have most of my music in this format and want to keep them that way so when I want to add an album to iTunes it's already in lossless format. But as it is now with iTunes as the default, anytime I even play one song it is imported into iTunes and I have to go back and delete it.
    I am sure there is a way to make the default program for .m4a files not iTunes?

    If you are just previewing music files you can also click on the song and hit your SpaceBar on the keyboard to listen to the song.

  • Recently my default program for opening any program changed to opening a safari browser for Dropbox. How do I set it back to iBooks?

    On both my iPad (which had Dropbox) and my wife's (which does not) any file we click to open the current default is to open a safari browser and attempt to sign into Dropbox. I want to restore iBooks as my default but can't find any info on how. Any help out there is really appreciated!

    Sorry for being vague. When I click to open a document in safari, rather than opening the document for me to view, it instead opens up a new window asking me to log into Dropbox to view the file. When I click and hold on link the file now starts with a drop box web address (regardless of website) forcing me to only use this avenue. I have cleared all cookies and data and still have this occur... Hence my comment that somehow Dropbox has become my default viewer for any files. This occurs on my iPad which has the application and my wife's which does not have the program but  shares my Apple ID. I am trying to restore the default settings in safari to open documents in iBooks or other programs and not force me to use Dropbox.

  • How do you globally change the default program for opening photo files?

    I want to adjust my system so that when I double click a photo file, Preview does not automatically launch.  I work in Photoshop all the time and would prefer that it be the default program for pictures.  I have already changed the "when you insert a picture CD" command in CD's & DVD's in System preferences but this does not have any effect on when I double click on a picture file to open it; Preview always launches and opens the picture there.  That automatic opening behavior is fine but I need it to happen in Photoshop.

    Assuming your pictures are all .jpg files: select any .jpg by clicking once on it in the Finder, then press Command+I to Get Info about it. In the Open With: section of the Get Info window, change the preferred application from Preview to Photoshop, then click the Change All button.
    Now any .jpg file that you double-click will open in Photoshop.

  • How do I make Pages my default program for opening doc files

    Currently TextEdit is the default program to open doc files that I download from emails. Now that I've installed iWork 08 I would like Pages to be the default program. Thanks!

    Right-click any .DOC file and select Get Info. Then choose Pages as the open with application and select "Change For All. Pages is now your default app for .DOCs.

  • Make lightroom default program for raw files

    I purchased Lightroom 5 after a trial version expired.  (I believe the version was 5.2, not sure.)  I got the actual DVD with the activation code on the box.
    Current OS is Windows 7.
    At first I ran the updates from the internet (had a bit of trouble with the DVD opening) and it loaded version 5.5, and I used the activation code.  Everything went well, but when I try to open a raw file (Sony/.arw extension), it doesn't give me the option to use Lightroom as the default program for this action.  It doesn't show the program at all, and when I go into browse and select it, it still won't come up.
    So, I uninstalled everything, rebooted etc, then loaded up the DVD and got the DVD to work this time.  Again, I think the version came up 5.2.  Went to assign .arw files to Lightroom, and - no problem whatsoever.  Lightroom showed up as a program, like it hadn't before.  I then ran the update again to 5.5, and I'm running into the exact same thing, where I can't set LR as the default program.  Possibly the registry is not right?  It's just no longer seeing Lightroom as a program in the "Open With" option (when I reinstalled, it wiped out the 'open with LR' I had attached to the files.)  I can open up Lightroom itself just fine, but I can't just click on a raw file and have it open.
    Any ideas on how to fix this, and why the earlier version was okay, but the update wiped out the 'open with' option?
    Thanks,
    Carmen

    It is common misconception that LR should open images.
    What happens is that LR opens LR catalogs, not images.  Images are imported after LR has started up.  You can double-click on a LR Catalog, an .lrcat, file, or you can drag-and-drop a LR catalog file onto the LR icon, and either will cause LR to open, but that is all.  If you ever opened an image with LR it would hang and be difficult to fix.
    I think maybe LR 1.x would automatically import images if you dragged them to it, but that was shut down several versions ago.
    LR can also be set to open when you insert a memory card, via a checkbox in preferences.
    You can also open LR via a shortcut, and then drag-and-drop a folder onto the main image area in Library mode and that'll initiate an import.  This is actually what I do for every import.

  • Making Flash Player Default Program for .flv Files

    I'd like to use Adobe Flash Player as my default program to open .flv files.  How do I find the flash player executable file on my computer?  I have the latest flash player successfully installed on my computer (Win7, 64-bit, Firefox) but cannot locate the executable file when I use the find program to use with this file type browse command.  Any ideas on where it may be located?  I did not see it in any of the Adobe folders in the program files (x86) folder.  Thanks for your help.

    Flash Player is a browser add-on, not an executable player.
    There is a standalone player (Projector) that you can download from http://www.adobe.com/support/flashplayer/downloads.html, but this player can only play .swf files.
    There used to be an Adobe Media Player to play .flv files, but is is no longer available.  Use a 3rd-party player like VLC Media Player to play .flv files.

Maybe you are looking for