Running an EXE from LABVIEW without the 'cmd' window showing

Hi,
I am currently using the 'system exec.vi' in a LabVIEW application to open files in external executables (mainly Windows Explorer, Acrobat Reader and Word).  This actually works fine and while my application is fairly sleek (even if I do say so myself) I am annoyed by the cmd window that momentarily appears each time I use the 'system exec.vi'.
Is there any way to disable this window?  Or maybe there is another way of opening the files altogether?
I am using LabVIEW 8.0 on Windows XP Pro.
Any help would be appreciated.
Bazza

Bazza wrote:
Thankyou for your comments...
I do buy LV as part of a developer suite so could use the toolkit you mentioned.  While PDF's and Word docs are the main files I open they are not the only.  I guess I could open different file types different ways.  I just hoped there was a better all round way to do it.
As far as Windows Explorer goes...  My application is a file manager targetted directly at the file structures we use for developing functional test applications.  The application handles all the file management requirements (i.e. WIP Backups, deploying, zipping/archiving etc) and its an added feature that you can 'explore' a given folder directly from the application.  The general idea is that all our developers create systems using the same structure and approach.
Cheers,
Bazza
Have you looked at the VI in vi.lib\Platform\browser.llb\Open a Document on Disk.vi. It opens the document passed in according to its file ending and attempts to communicate with the target application through DDE if possible before using the command line. Even then I have not seen a cmd window popup so far.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • How to start java.exe from a java program in windows ?

    Hi,
    I did like to know, if its possible to run java.exe from a java program on windows ? The java.exe should be visible from checking the processes that are currently running using the Task Manager on windows.

    Runtime.getRuntime().exec("java Sample");

  • Pda execute other exe from Labview

    I'm looking for ways to execute an exe from Labview PDA that is stored on the PDA (another PDA application)... I'm running WM5.0 ... .any ideas ...
    Greycat

    Hey Greycat.
    That is a great question!  So as you noticed there is no equivalent to System Exec in LabVIEW PDA, so you cannot launch an application that way.  I would think that there would be a DLL that could be called on the PDA that will allow you to launch applications.  However, after several Google searches I was not able to come up with any specific code or DLLs.  Once you found that DLL hoewever, you shouldn't have problems launch an EXE.  I am assuming that these are not other LabVIEW PDA built EXEs, which is a shame since you might be able to open a VI reference to that VI. 
    Andy F.
    Message Edited by Andy F. on 04-25-2006 06:52 PM
    National Instruments

  • I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...

    I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...what should I do?

    Hi Arika,
    The drivers that you need to install to make your executable work depends on what your executable is doing. To get started, you need to have the LabVIEW Run-Time Engine installed on your target machine (the Win2000 machine you are planning to use) in order to run your executable. Next, you need to determine what drivers your executable uses, if any. For example, if you are using GPIB instrument control, you will need to install the NI-488 drivers on your target machine. If you are performing data acquisition, you will need to install NI-DAQ drivers. If you are doing image acquistion, you will need to install NI-IMAQ drivers.
    All these drivers are available for downloading on ni.com. To get the drivers, go to ht
    tp://www.ni.com/support , click on the link that takes you to Drivers and Updates (under Option 3), and click on the links to get to the driver(s) you need. For example, if you need the LabVIEW 5.1.1 Run-Time engine, click on the All Drivers and Updates by Application link on the main page (http://www.ni.com/softlib.nsf/). Then click on the LabVIEW link, Windows 2000, Run Time Engine, and then you will see the link to get to the page to download the LabVIEW 5.1.1 Run-Time Engine.
    I hope this information helps.
    Best Regards,
    Wilbur Shen
    National Instruments

  • Request to run updater.exe from an unknown publisher starting firefox

    every time Firefox is started from initial turn on of computer (not from the computer being hibernated or in sleep mode), I receive a message to run Updater.exe from an Unknown Publisher. There is nothing to show that this is a Firefox application but, I am not receiving any threat messages either. Is there any way to find out where this Updater is coming from and if it is to be trusted?

    Do you use a Norton security suite? If so, I suggest checking with Norton's support on whether that prompt is legitimate.
    You will find numerous unofficial distributors advertising on Google for Firefox downloads. These generally are bundles of crap along with Firefox. You should check to make sure you don't have such a thing installed.
    Open the Windows '''Control Panel''', Uninstall a Program. After the list loads, click the "Installed on" column heading to group the infections, I mean, additions, by date. This can help surface undisclosed bundle items that snuck in with some software you agreed to install. Take out as much trash as possible here.
    You can supplement your regular security software with the '''scanning/cleaning tools''' listed in our support article: [[Troubleshoot Firefox issues caused by malware]]. These on-demand scanners are free and take considerable time to run. If they finish quickly and especially if they require payment, you may have a serious infection. I suggest the specialized forums listed in the article in that case.
    Does that help?

  • Win2000 NoClassDefFoundError running java.exe from DOS prompt

    I am using Windows 2000 with J2SE v 1.3.1_02 and have a problem when I run java.exe from the command line for classes that are defined to be in a package. I can both compile and run this program from the TextPad editor but when I run it from a DOS prompt I get the error "Exception in thread "main" java.lang.NoClassDefFoundError: MyClass"
    My CLASSPATH is set to D:\
    The files MyClass.java and MyClass.class are in the directory D:\MyProject
    here is the source:
    package MyProject;
    public class MyClass
         public static void main(String[] args)
              System.out.println("MyClass main");
    Note that if I comment out the package statement and add "." to CLASSPATH then it runs from the DOS prompt. Why does the program run from inside TextPad but not from the DOS prompt? Seems to be some type of bug in java.exe on Windows 2000 when the keyword package is used.

    It turns out that if you use the main method in a class that declares the package statement you need to use the fully qualified name to run the program. Using this statement works for this problem:
    java MyProject/MyClass
    the forward slash is required even though is a Windows system.

  • I cannot uninstall Firefox, either through Control Panel Add/Remove or by running helper.exe from Program Files.

    Nothing happens when I click on REMOVE for Mozilla Firefox from the Add/Remove screen of Control Panel. I then tried to run helper.exe from the Mozilla Firefox folder in Program Files, but that wouldn't run either. Any suggestions?
    == This happened ==
    Just once or twice
    == When I tried to uninstall Firefox

    unistalled foxtab, however the window saying "want to add this pers. button to toolbar" no matter what I do I can't get it off , close firefox, remove or delete or get a new firefox download to replace it in the harddrive etc. Its locked up firefox and I have to use safari to access the web. how do I get this circular message etc. off ?

  • Send sms from Labview without LabVIEW 8.0 PDA module

    Does anyone can send sms from Labview without LabVIEW 8.0 PDA module?

    You can get a wireless (GSM) modem for the pc. There have been some discussions here that you can do search for. One is http://forums.ni.com/ni/board/message?board.id=170&message.id=142443&view=by_date_ascending&page=1.

  • Running Java.exe from VBScript

    I have a program that starts via a java command. If I look at the properties for the shortcut, it has?
    Target Type: Application
    Target Location: bin
    Target: "C:\Program Files\CBS\CBPay\javaRt\bin\java.exe" -Derrors com.cbsgame.cbPlus.CBPlus -ms16777216 -mx268435456
    Start In: ?C:\Program Files\CBS\CBPay?
    If I run the application via this shortcut, it runs fine. I need to run it via vbscript. I am using the below syntax?
    Set RegObj = WScript.CreateObject("WScript.Shell")
    appName = """C:\Program Files\CBS\CBPay\javaRt\bin\java.exe"" -Derrors com.cbsgame.cbPlus.CBPlus -ms16777216 -mx268435456"
    MsgBox appName
    RegObj.Run appName
    When I run it, the command prompt screen flashes and nothing happens. If I change the java.exe to javaw.exe, it gives me ?Could not find the main class. Program will exit.? I have tried adding ?-cp c:\Program Files\CBS\CBPay? and it still doesn?t work. I tried removing the ?Start In? on the shortcut and sure enough, it does the same thing and stops working. Also, if I Start==>Run and paste that command and run it, it does the same thing and flashes the command prompt screen and nothing happens. It's like it just doesn't have a path to something. I have no "Java" experience and beginner VBScript...So any assistance would be greatly appreciated! Thanks!

    I changed it to have "cmd /k", so that it would at least keep the cmd window open so I could read the error message...it is giving me the following...
    "Exception in thread "main" java.lang.NoClassDefFoundError: com/cbsgame/cbPlus/CBPlus"
    I believe a major part of my problem is that I am majorly JAVA challenged and don't really know what that "com.cbsgame.cbPlus.CBPlus" portion of the java command relates to. I searched for jar file names CBPlus and found one in "c:\program files\CBS\CBPay\client\lib", but don't see how that relates/translates to the ".com.cbsgame..." in the JAVA command?
    Thank You!!!

  • Is there a way to save photos from lightroom without the original file?

    I recently imported photos into lightroom, but I failed to save the original files on my computer and they are deleted from my card.  The pictures are still showing up in lightroom.  Is there a way to save them from lightroom without the original file?

    Your images aren't - and never were - in Lightroom, they're just referenced in Lightroom's database.
    Lightroom does generate jpeg previews of the originals though, and you can export those using Rob Cole's Preview Exporter plugin: robcole.com - PreviewExporter.
    To be clear though, these aren't the originals.

  • Why has apple restricted adobe flash player?  How can one watch things like shows from CBS without the flash player?

    Wy has apple restricted the use of adobe flash player?  How can one watch things like shows from CBS without the flash player?

    This has been discussed a billion times. Please search before posting.
    Read this: http://www.apple.com/hotnews/thoughts-on-flash/
    CBS has apps for watching its shows. Search the AppStore.

  • Labview as the active window disables 1 or 2 concurrent while loops

    I am trying to get familiar with new mutltifunction DAQ hardware from IOtech - a DAQborad/2000.
    I have a simple vi consisting of two while loops which should be running in parallel. One acquires analog input data, the other handles DAC outputs.
    When I run the vi, the analog acquisition while loop runs fine, but the DAC while loop will not run if labview is the active window on the pc (frontpanel or diagram). If I make another window active, both loops will update as they should.
    I can resize a windows explorer window to make it small, run my vi, make windows explorer the active window and see the vi running both loops and updating as it should in the background. If I use the "Highlight Executi
    on" tool on the diagram screen, both loops run as they should.
    Any ideas?
    Thanks,
    Mike

    > I am trying to get familiar with new mutltifunction DAQ hardware from
    > IOtech - a DAQborad/2000.
    >
    Many third party drivers default to running in LV's UI thread, and if
    they put the thread to sleep, other LV threads can run, but not the UI.
    It is also possible that one of the loops is hogging while the other
    is being starved.
    So, I've got two suggestions to try. First try putting a delay of a few
    ms in the busy loop. This might help with the starvation. The second
    thing to try is to open up the IOTech VI and try setting the DLL node to
    be reentrant. This will allow the node to run in any thread and not
    force it into the UI thread. Beware that if the DLL isn't threadsafe,
    this could lead to data corruption or crashes, and before leaving it s
    et
    this way, you should probably contact IOTech to see if their DLL is
    threadsafe. If it is not, contact NI tech support and they can help you
    determine if it is safe in this case to leave it running in other threads.
    Greg McKaskle

  • How to stop concurrent programs from appearing in the SRS window ?

    Hi All,
    We have hundreds of custom concurrent programs registered under a custom application.
    Except for 3 hidden programs (which will be submitted internally from another concurrent program), all the others should appear in the SRS window. Therefore, instead of individually registering each program in the request group, we have registered the application itself, in the request group.
    However by doing this, the 3 hidden concurrent programs are also appearing in the SRS window. The concurrent program define form doesn’t allow us to uncheck the “show in SRS” checkbox if we have parameters define for a concurrent program.
    Is there any way that we can prevent these hidden programs from appearing in the SRS window, in our case?

    Hi,
    Create a new request group and add all but the 3 programs, using a PL/SQL script calling fnd_program.add_to_group.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • How to make the exe always visible in the application window

    Hi,
    I created an interface for "illustrator CS" using Visual Basic and copied that exe in Scripts folder. I want to know how to make the exe always visible in the application window itself(Not in Taskbar), once it was clicked. Could you please, kindly advice me.
    Thanks,
    Prabudass

    Hi,
    I guess....though i am not pretty sure....but the Preview tab has been discontinued in the newer versions....
    Only the Gods can give a perfect solution though...!!
    <i>Do reward each useful answer..!</i>
    Thanks,
    Tatvagna.

  • URLs without the file extension showing

    This is just one of those odd things I've never had to do, so have never thought about it - but I've been asked to upload a powerpoint presentation, with a URL of just www.mydomainname.com/powerpointname
    If anyone could let me know how this is done, that would be much appreciated.
    Thanks.

    Try this: name your powerpoint file index.html and put it into a folder (in your site) named powerpointname.
    Ideally, that will default to showing the file without the filename technically showing.
    Here is a link that discusses powerpoint presentations as webpages: http://presentationsoft.about.com/od/nextstepsinpowerpoint/ss/save_as_webpage.htm
    Beth

Maybe you are looking for