Cannot launch external exe

Hi,
I have to launch and external exe.
The exe "ComputeRay" is working when I launch it from the command window as shown below.
But when I try to launch it with system ("ComputeRay") I get the error file not found (-3).
How could I make it work?

I may be wrong, but it's my opinion that using two consecutive calls to system () is equivalent to open a command prompt, call the exe, closing the window, opening a new command prompt and calling the other program.
The easiest solution could be to add the last call inside the batch file make one call only to system. Alternatively you could try editing environment variables like PATH with _putenv () function. You could also try to edit _default.pif file (or whichever is its equivalent in Win7/8 OSs) as described in the help for system ().The last resource could be to permanently set environment variables in your system as described in this guide. 
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • Studio 5 on Windows XP: Cannot launch external browser (Netscape),

    Hi; This little problem is a real PITA.
    System: Win XP Pro
    Browser: Netscape 7.02
    Problem: Configuring IDE to use Netscape.
    No matter what and how I try (via options) the IDE does not know how to launch a url in Netscape. It launches Netscape but does not succeed with the insertion of the url.
    thank u all
    -nat

    Hi Nat... yep... this took me a couple of trys...
    1. go to Tools/Options/Server and External Tool Setting
    2. select Web Browsers/External Browser (Windows)
    3. set your path to Netscape.exe (mine was C:\Program Files\Netscape\Netscape\Netscp.exe)
    4 Now make sure you select NETSCAPE6 for the DDE Server property from the drop-down menu for that property...
    Hope this helps...It took several frustrating moments to figure that one out...
    Marko

  • I cannot launch iTunesSetup.exe - unknown publisher

    When I open iTunesSetup.exe after downloading it from the website there is warning message that the file does not have a valid digital signature & is from an unknown publisher. This is confirmed when right clicking the file & selecting properties. I have spent 2 hours on the phone with a helpful guy from Apple but have drawn a blank .Firewall has been turned off , Norton 360 removed , internet settings changed , temp file deleted , etc etc .
    Norton have said that Microsoft may know what to do . Is anyone else having this problem ? Surely the file on the website cannot be faulty ?

    The most common fix for this is to download the iTunesSetup.exe file from another router.
    Or, if you are downloading from a wireless connection, try downloading from wired connection.
    Here are just 2 examples where this was the fix for other folks
    http://discussions.apple.com/thread.jspa?messageID=10652940
    http://discussions.apple.com/message.jspa?messageID=11187671#11187671

  • How to create a button in a interactive document and use the button to launch and external "exe." file.

    I created an interactive document and will export as a swf.  I would like to create a button in the interactive document to launch and external "exe." file. Is this possible.

    You will need to create custom web part editor. Look at the following example. It also have added button and its events. I am sure you can use this sample as base and code your logic.
    http://msdn.microsoft.com/en-us/library/hh228018(v=office.14).aspx
    Amit

  • External exe launched in a rectangular region drawn

    Hello,
    Please find an attachment. Kindly have a look on .uir file in the example. If i want to launch any external exe say e.g cmd.exe in the rectangular region drawn, what will be way of doing this as i am unable to launch .exe in the rectangular region specified.
    Thanks & Regards.
    Moshi.
    Attachments:
    Example.uir ‏2 KB

    Moshi,
    You can use pipes to do this, though when I tried this I couldn't get a reliable solution. I abandoned pipes and simply coerced the output into a file that I then read in. This is a very crude solution and I suspect isn't very future proof but it works in W7! Code below might help:
      sprintf (Cmd, "\"%s\" > \"%s\"", BatchFilePath, OutputFile);
      Ret = system(Cmd);
      if ( Ret < 0)  
        //file is not there   
        sprintf( Msg, "Can't run %s, error: %i", Cmd, Ret);
       return Msg;

  • Launching external applications from web start

    Hi!
    I am currently working on a management system and I need to launch other management systems from my Java Web Start application. The other systems are either based on web applications (URLs), telnet - needs to set up a telnet session, or running shell scripts or batch files.
    URLs are ok. I am using Desktop.browse in Java 1.6 or I can use BasicService.showDocument in javax.jnlp API.
    My application may run on both windows and linux (ie its launched from the browser). It interacts with a java app on a linux server over RMI.
    How can I lauch a telnet session from my client app?
    Do I have to include apache commons.net and create a telnet module in my app or can i lauch c:\windows\system32\telnet.exe in windows (if my app is lauched on win) and /usr/kerberos/bin/telnet (if my app is lauched in Linux)?
    How can I launch an external .exe application in window and how can I launch any shell script or program in Linux?
    (same as how do i lauch telnet)
    As long as the user is prompted I can see no risk of denying these kind of things so I hope and think that this should be possible!
    PS. I have managed to do it by using Runtime.exec() when running as a non JWS application, but I cannot do it when running as JWS:
    java.security.AccessControlException: access denied (java.io.FilePermission <<ALL FILES>> execute)I dont want to sign the application either. The reason for choosing webstart was to not have to renew certificates at our customers.
    Please help.
    Thanks for taking interest and reading this.. and I hope that someone has some helpful answers for me :)
    Edited by: Tomas_Andersen on Feb 5, 2008 6:34 AM

    Do you know how to launch Java applications (not applets) from web pages ? Thank you.
    you can setoff a java servlet from a webpage.Is that what you are talking about ??? activeateing a server side app ????

  • Launch external files on Linux

    I want to launch external files from Java, in a cross platform way.
    ie say I have a file fred.jpg, I want to launch that on any platform to open in the editor defined on that computer.
    The book 'Swing Hacks' (Marinaccci and Adamson), shows how to do this for Windows and Mac. My version of their code is
         static public void launch(URL url){
              try{
                   String cmd;
                   if (OS.isMac())
                        cmd = "open "+url;
                   else     // TODO linux?
                        cmd = "cmd.exe /c start "+url;     
                   Runtime.getRuntime().exec(cmd);
              catch(Exception e){new Fail(e);}          
         }However, I don't know what to put in for linux?
    Searching the web I came across http://weblogs.java.net/blog/ixmal/archive/2006/05/javaawtdesktop.html,
    which suggests that
    Desktop.getDesktop().open(new File(filename));is more platform independant. However for me it seems to work only on Windows, failing silently on Mac and Linux?
    Can someone with a good knowledge of Linux help please.

    >
    Will Duke stars get anyone to answer this?>I cannot say. What I can tell you is that at least it got me to read it.
    And now I look over your original post..
    >
    ..However for me it seems to work only on Windows, failing silently on Mac and Linux?>'Seems'? The docs. for Desktop.open(File) suggest it throws a whole range of exceptions if it cannot perform the task. Are you sure the code is not 'swallowing exceptions'?
    Can you produce an SSCCE that fails as you claim? If so, this really sounds like a bug.
    And as an aside, Desktop was introduced in 1.6, but AFAIR, Apple is still stuck on 1.5. How did you get it to 'fail silently' on a Mac.?
    Edit 1:
    But if you are intent on doing it the way that you originally asked about, you might be able to pick up some tips from the [http://browserlaunch2.sourceforge.net/|BrowserLauncher2] code.
    Edited by: AndrewThompson64 on May 22, 2008 4:48 PM

  • Lightroom cannot launch with this catalog... network volume or...

    I am moving from one computer to another, and I have always kept all my Lightroom files and catalogs on a separate external hard drive.  I unplugged it from my old computer, and plugged it into my new computer and it gives the following message:
    "Lightroom cannot launch with this catalog. It is either on a network volume, or on a volume on which Lightroom cannot save changes"
    Hum, plug back into my old computer and all is working fine. 
    Connected by firewire, using all Mac computers.
    Thanks, I need your help!

    Ah, I just tried it again in my old computer, and it is coming back as a bad hard drive that needs to be backed up immediately..... darn, thought those LaCie's lasted more than one year.
    Thanks, hopefully, I will be back and running soon.

  • Cannot launch SQL Server management studio

    Hi people,
    I cannot launch the sql server management studio. In the event log, appear the next entry:
    Faulting application ssmsee.exe, version 2005.90.2047.0, faulting module msvcr80.dll, version 8.0.50727.4053, fault address 0x0000e7a2.
    What can i do for repair this? Uninstall the sql instance? This affect to sap system installed?
    Other options?
    More thanks

    Hi Ruben,
    What is the MS SQL Server version and SP level ? Which windows server is it - 2000/2003/2008 - 32bit/64 bit ?
    Is the database/SAP up and running ?
    I got to see another old thread for similar problem from you. Is it a regular problem or just something happened recently ? Any configuration changes/any activity related to MS SQL Server or any OS changes done recently ? But as the link suggests in your old thread, may be you can give it a try or try upgrading the sql server to a higher SP level ?
    Starting SQL Server Management Studio Express
    If you are an SAP customer, I would suggest you to open a customer message if the problem is urgent and in productive/live landscape.
    Thanks

  • Cannot launch Poweer Shell in administrator mode

    MS 2012R2 DataCenter
    I am in administrator account. When I right click powershell icon, it presents run as administrator. I select it but no window opens
    If I click powershell, it opens.
    How do I get the administrator mode working again?
    THX
    John Lenz

    This 2012R2 DataCenter system is the host for 3 - 2012R2 STD VM. In each VM I can right click power shell and it launches as administrator when selected. 
    On the physical system, I cannot launch as administrator. I select it but no UAC & window appears. If I win + q and  right click, same result.  It is only if I go to program files and right click the .exe do I get the administrator window opened.
    Why only on the host.
    On a separate host (AD), I can right click and run as administrator. I have verified "member of"  the datacenter host has administrator rights.
    John Lenz

  • TS3212 Still unable to download itunes to my pc. Tried with IE, Mozilla and Google Chrome. Keep getting an error message :"Windows cannot open itunes.exe the file is corrupt contact support."previous itunes files were wipped out by "disk cleaner." Any hel

    Still unable to download itunes to my pc. Tried with IE, Mozilla and Google Chrome. Keep getting an error message :"Windows cannot open itunes.exe the file is corrupt contact support."previous itunes files were wipped out by "disk cleaner." Any help??
    Please!
    Thanks!

    If anyone is reading this still looking for what caused the issue and how to fix it here is what I discovered.
    The antivirus program our company uses, Bitdefender Antivirus Plus, was causing some of the PDF files not to open. After troubleshooting the different modules and settings the culprit was..
    Scan SSL in Privacy Control Settings. Turning it OFF solved the problem and all the PDF files that previously would not open now open just fine. This issue has been sent to Bitdefender for them to review. If you use a different antivirus program and are having this issue try locating the Scan SSL setting and see if turning it off solves the problem.

  • Mail cannot launch because it says Home Driectory is full? It is not full!!

    Hi There:
    I have two users on my computer and for some reason I cannot launch my mail program on one of them. Both users are listed as administrators and I have 2 hard drives installed using a firmtek controller card. The first drive where the OS is installed is an 80Bg drive with more than 57Gb available.
    When I launch Mail on the first user ut says:
    Mail cannot update your mailboxes becasue your Home Directory is full. You must free up space. Delete unnecessary files or documents. The thing is I have tons of space. The other user I can launch mail with no problems. I do have multiple mailboxes set up with the mail program that has the issues.
    Please advise
    Thanks
    W

    Hi Cyclops Images.
    Corruption of ~/Library/Mail/Envelope Index is known to cause this bogus error message in Mail, even when there is enough space available on disk.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all the filesystem issues, if any, and making sure that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
    1. Quit Mail if it’s running.
    2. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong, e.g. by dragging it to the Desktop while holding the Option (Alt) key down. This is where all your mail is locally stored.
    3. Locate Envelope Index and move it to the Trash. If you see any other “Envelope Index”-named file there, delete it as well.
    4. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index — Mail says it’s “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • How do I execute an external .exe?

    easy question I hope.
    I'm just making a front-end program with some buttons on it. You push a button, and when you do, an external EXE is called.

    Here is something that should help. Runtime.exec() is actually quite complicated even though it's interface is seemingly not (hinting that it's a bad API design):
    You should be able to fill in any missing external references w/o difficulty.
    package com.solutions400;
    import java.util.*;
    import java.io.*;
    import java.util.logging.*;
    * Wraps the complexities of Runtime.exec().
    * @author  Joshua Allen
    * @created December 10, 2002
    public class RuntimeExec
         private static final Logger myLog = SystemDetails.log();
         private Process myProc;
         private StreamGobbler myErrorStream, myOutStream;
         // Access is synchronized so that the check and interrupt call can be an
         // atomic action.  Hence the reason for not using Boolean.FALSE.
         private MutableBoolean myIsWaiting = new MutableBoolean(false);
          * Number of milliseconds to wait for a process to finish before
          * interrupting it when getting the output and/or exit value.
         public final static int TIMEOUT = 1000 * 60;
          * Value returned by exitValue() if the process did not terminate before the
          * timeout and hence true exitValue is unknown.
         public final static int EXIT_VALUE_INTERRUPTED = -999;
         public RuntimeExec(String command)
         throws IOException
              Runtime os = Runtime.getRuntime();
              myProc = os.exec(command);
              myErrorStream = new StreamGobbler(myProc.getErrorStream());
              myOutStream = new StreamGobbler(myProc.getInputStream());
              myErrorStream.start();
              myOutStream.start();
          * @return stderr ouput from command.  Will only wait at most a minute for
          *     the
         public String getError() {
              try {
                   myErrorStream.join(TIMEOUT);
              } catch (InterruptedException e) {
                   myLog.log(Level.FINE, "Joining interrupted.", e);
              return myErrorStream.getOut();
          * @return stdout output from command. 
         public String getOut() {
              try {
                   myOutStream.join(TIMEOUT);
              } catch (InterruptedException e) {
                   myLog.log(Level.FINE, "Joining interrupted.", e);
              return myOutStream.getOut();
          * @return exit value of command.  EXIT_VALUE_INTERRUPTED if the process
          *     was interrupted before it terminated.
         public int exitValue() {
              final Thread thisThread = Thread.currentThread();
              Thread t = new Thread() {
                   public void run() {
                        Helpers.sleep(TIMEOUT);
                        synchronized (myIsWaiting) {
                             if (myIsWaiting.get()) {
                                  thisThread.interrupt();
              t.start();
              synchronized (myIsWaiting) {
                   myIsWaiting.set(true);
              waitFor();
              synchronized (myIsWaiting) {
                   myIsWaiting.set(false);
              try {
                   return myProc.exitValue();
              } catch (IllegalThreadStateException e) {
                   myLog.log(Level.FINE, "Process did not exit.", e);
                   if (myLog.isLoggable(Level.FINER)) {
                        myLog.exiting(Runtime.class.getName(), "exitValue",
                                  new Integer(EXIT_VALUE_INTERRUPTED));
                   return EXIT_VALUE_INTERRUPTED;
          * Waits for the process to finish.
         public void waitFor() {
              try {
                   myProc.waitFor();
              } catch (InterruptedException e) {
                   myLog.log(Level.FINE, "Waiting interrupted.", e);
         private class StreamGobbler
         extends Thread
              Reader myIn;
              CharArrayWriter myBufOut = new CharArrayWriter();
              StreamGobbler(InputStream in)
                   myIn = new BufferedReader(new InputStreamReader(in));
              public String getOut() {
                   return new String(myBufOut.toCharArray());
              public void run()
                   Writer out = null;
                   try     {
                        out = new BufferedWriter(myBufOut);
                        char[] buf = new char[SystemDetails.BUF_SIZE];
                        int numRead;
                        while ((numRead = myIn.read(buf)) >= 0) {
                             out.write(buf, 0, numRead);
                   } catch (IOException e) {
                        myLog.log(Level.FINE, "Error retrieving output.", e);
                        PrintWriter pw = new PrintWriter(out);
                        e.printStackTrace(pw);
                   } finally {
                        Helpers.close(out);
         }///:>
    }///:~

  • After iOS7 update I cannot launch the music app. It crashes after a few seconds of white screen. What to do?

    Just updated my iPhone 5 (16g) to iOS7 and now I cannot launch the music app anymore.
    It opens and then just crashes after a few seconds of white screen.
    Also If I go to Settings General About the phone crashes all the time after just a few seconds. :-(
    Andreas

    The same for me. iPhone 4S, itunes match and upgrade to ios7 by air.
    So what we have:
    1) Music app does not launch (white screen then close)
    2) About screen crashes (I guess once it tries to calculate music space)
    3) Spotlight does not show any results (no care what I set to search in in the preferences)
    4) iTunes Match slider can not be set to Off. However, it is possible to logout from AppleID, then it off. But this does not change the situaton at all
    5) Podcast app does not launch
    I tried to reboot, to sign in with another Apple ID, to turn off itunes Match, to reset all preferences. Nothing helps.
    Things to try:
    - reset all preferences and content
    - reinstall ios7 with itunes from scratch
    - switch to windows phone

  • I cannot launch bridge from photoshop cc 2014

    I cannot launch bridge from photoshop cc 2014

    If you have downloaded and installed Bridge CC and it worked with Photoshop CC,
    a common reason for this happening in CC 2014, is that you might have uninstalled Photoshop CC. If that's so, you need to reinstall Photoshop CC.
    Gene

Maybe you are looking for

  • What's happened to my board? (MSI KT4AV-L)

    I have a bit of a problem, I have a MSI KT4AV-L with a AMD Athlon XP3000+ Processor. Here's the mail i've just sent to the tech support of where I got the board from.. Quote Yesterday, I started to have problems with the internal network port - it wa

  • GL JOURNAL DETAIL에서 근본 PO DOCUMENT를 구분하는법

    제품 : MFG_PO 작성날짜 : 2005-11-09 GL JOURNAL DETAIL에서 근본 PO DOCUMENT를 구분하는법 ================================================= PURPOSE Requisitions이나 Purchase order에서 비롯된 GL_JE_LINES(Journal Lines) records로부터 근본 document details을 검색할 수 있다. Explanation Cre

  • Automatically bring up pdf files in Preview (or at least Safari)

    Ideally, I would like the ability to click on a pdf file in Safari and have it automatically bring it up in Preview. I believe you need a plug-in for that and it looks like that doesn't exist (or does it). Assuming that's the case, I would settle for

  • After changing track name, sequence no longer alphabetical

    I decided to make a few changes to my iTunes library to ensure that, for all my classical music, the song name was preceded by the composer's name in the few situations where this was not already the case. So I made the necessary changes through the

  • Access gate SDK, authentication and issues/bug

    I have been trying to test authentication against CORE ID using the access gate SDK for java and following the samples that installed with the SDK. I simulate user account lock-out and pwd to expire ( in two days) situations. Doing the form based acc