Two .exe files to run sequentially

Inside a class, I am running two .exe files. But even before the first .exe gets terminated, the second .exe file is getting executed.
Could someone please tell me how do I run these two .exe files sequentially.
At present no error is thrown, but the necessary number of files are not created from both the .exe files.

If I am right in understanding, is this what you meant for me to do. But still from the below code, before the execution of the first .exe, the second .exe is getting executed.
Please tell me what updations to do in my code.
public class Compile
     int flag=0;
     public Compile()
     void compileFile(File newFile, String renameSub, File outputfile, String fontName, String IntallPath) throws IOException
          String FirstParam = "C:\\Temp\\Installation\\test.tex";  
          String FirstParam2 = "C:\\Temp\\Installation";
          String SecondParam = "C:\\Temp\\Installation";  
          try
               Process proc1 =Runtime.getRuntime().exec("cmd /c start /MIN tex " + FirstParam, (String[])null, new File(SecondParam));
               InputStream stderr = proc1.getErrorStream();
               InputStreamReader isr = new InputStreamReader(stderr);
               BufferedReader br = new BufferedReader(isr);
               String line = null;
               proc1.waitFor();
               if(proc1.exitValue()==0)
                    System.out.println("tex is executed successfully");
                    flag=1;
          catch (Throwable t)
               t.printStackTrace();
          if(flag==1)
               ... code for second .exe file ...
}

Similar Messages

  • My auto install for Premiere Elements failed and told me i needed to do a restart and try installing again. Having restarted my laptop, how do I install the software? There are two .exe files in the folder - oem and start-up. Which should i run?

    My auto install for Premiere Elements failed and told me i needed to do a restart and try installing again. Having restarted my laptop, how do I install the software? There are two .exe files in the folder - oem and start-up. Which should i run?
    thanks

    for windows you should have an exe and a 7z file.  put both in the same directory and double click the exe.
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • How do I move two exe. files to a windows 8 machine

    I have two exe. files I need to move to a windows machine. I believe I may be able to do this via ethernet cables. Is there some set of instructions somewhere that can help me with this? The windows version is 8.xx. I have no idea about it. The last time I bought a non-Apple computer was way back before Windows even  existed. There was such a time. Back in the 80s. The 1980s. This little Toshiba laptop I bought today is here for one reason only and that is to run firmware updater routines on a Davis Weather Console that cannot be accessed via a Mac. I don't have a lot of time to waste on this. I hope somebody knows how to do this. Sure appreciate some help if you can do this.

    Hello lopezcalling,
    The following article provides the necessary steps and information for setting up filesharing with a Windows computer.
    OS X: How to connect with File Sharing using SMB
    http://support.apple.com/kb/HT5884
    Cheers,
    Allen

  • Unwise.exe Files not run on Windows 8.1 SSSS

    So unwise.exe Files not run on Windows 8.1 I Tried too! much but when i run it , it will not open i also tried To run as Administor but not works i am downloaded GTA San Andreas Admin console for my GTA San Andreas that one was unwise.file its not opening
    what should i do?
    Reply Please!

    So unwise.exe Files not run on Windows 8.1 I Tried too! much but when i run it , it will not open i also tried To run as Administor but not works i am downloaded GTA San Andreas Admin console for my GTA San Andreas that one was unwise.file its not opening
    what should i do?
    Reply Please!

  • Authorware exe file to run in Moodle

    Can an authorware exe file run in Moodle, without the users having to download the AW player?  How is this done?

    No .exe file can run in any web-based product. If you provide an .exe via the web, it must be downloaded to the user's computer and played locally.
    Now, you can publish Authorware for the web, but then users must have the Authorware Web Player installed for it to work.
    So, to answer your question directly; No, and it isn't done. ;-)
    Erik

  • Sharing Nidaq32.dll in two exe file

    I need to run two exe applicatuions at a time which is using Nidaq32.dll. But its showing error like "Nidaq32.dll file not found"
    I hope i will get response for this query as soon as possible.
     thanks in advance  

    Hi,
    Thank you for posting to the NI forums.  Which version of Traditional DAQ are you using?  Does the error occur when you run a single executable or just when you run one executable?  What programming language are you using?
    Traditional DAQ is multithread-safe, which means that two threads can use the driver.  However, the driver itself is not multithreaded.  Therefore, two threads can use the same piece of code of the driver (for instance, acquiring analog inputs), but the second thread must wait for the first to finish.
    DAQmx on the other hand is multithreaded, which means that two threads can use the same portion of the driver – however, the threads must be related to separate devices.
    Please post back with more information about your application.  In the mean time, I’ve placed a link below from another related discussion forum.
    Installing NI-DAQ 7.5 driver causes error "nidaq32.dll not found" error in old VB6 code
    I hope this helps.
    Ed W.
    Applications Engineer
    National Instruments

  • Error:The specified network address is currently in use when exe file is run

    I get this error(above) when i run my executable files.My exe file is in directly in c:\codes\application.exe. After this, i also like to know how do i enter the URL in a web browser to access this exe file. I have created and change the labview.ini file to application.ini and put it in the same directory as my exe file already.
    Kindly provide me with a detailed solution to solve this problem. Thanks

    I am not sure what you are doing but I think this is the information you are looking for:
    Can I Make My LabVIEW 7.0 Executable Use Remote Front Panels?
    There are several other simmlar pages on the web. I went to Advanced Search and looked for executable remote front panel .

  • How do I get the Adobe Presenter trial .exe file to run? I'm getting an error requiring placement into a designated folder,

    Getting an error trying to run the Adobe Presenter trial .exe file because it is requiring that the file be placed in a designated folder with the other downloaded file. How do I solve this problem?

    Thanks, the offset command worked well. I did have to modify the script some more, there was really no reason for the first repeat loop using the offset command. Also, I had set my text item delimiters to tab for another script, and that was causing problems running this script. I think I have everything fixed now. This is the final version.
    set my_folder to choose folder
    tell application "Finder"
    set myfolderstring to name of my_folder as string
    set myfolderlist to every character of myfolderstring
    end tell
    set mycolorlist to {"A_Green", "B_Teal", "C_Purple", "D_Pink", "E_Yellow", "F_Orange", "G_Blue", "H_Black"}
    set my_break to offset of "_" in myfolderstring
    set the_code to items 1 thru (my_break - 1) of myfolderlist
    set the_code to the_code as string
    repeat with i from 1 to number of items in mycolorlist
    set the_color to item i of mycolorlist
    tell application "Finder"
    make new folder at my_folder with properties {name:the_code & "_" & the_color}
    end tell
    end repeat

  • Converting .java to .exe files  to run those without runtime environment

    i want to convert my java code to a windows application file so that when ever i have to take it to some place for description, i would not require to install java run time environment. and can show up the working of the code with the help of it..................

    Converting a Java application into an exe file
    This question is sometimes asked many times on a single day in the comp.lang.java.* newsgroups, and I always end up asking the same question: why do you want to? Most answers fall into one of four categories, and each prompts a different course of action. Most of the time, an exe file isn't actually required.
    Reason 1: Speed
    "Java is interpreted, so I want to make it native and make it faster." Well, very few modern desktop VMs actually spend much time interpreting Java bytecodes these days. Everyone and their dog has a JIT (Just In Time) compiler which will compile your code into native form before running it. Smart VMs will do this only when appropriate (ie if the code is going to be run more than once, or contains loops etc), and may recompile the code on the fly if the conditions change (eg if a subclass is loaded which invalidates some inlining optimisations, or if the code is run very frequently and therefore merits more aggressive optimisations). The bottom line is that for most applications, Java running on a VM is pretty fast these days. It's usually pretty close to the speed of a natively compiled and similar C/C++ application - certainly I've seen changing compiler (or compiler options) for C/C++ make more difference to speed than going between Java running on a VM and natively compiled Java.
    There are some situations where the speed difference is significant. If you're really desperate for that extra bit of performance, try evaluating one of the native compilers listed here with your particular application. Make sure you write some real benchmarks though - vague notions of "feeling faster" may well be down to preconceptions.
    Remember, too, that as new VMs come out, they tend to improve performance. That means that to get the best out of your application if it's running on a VM, the user only needs to download a later VM - no action is needed on your part. If they're using your natively compiled code, you'll probably need to recompile on a later version of the native compiler, if one is available.
    Reason 2: Being able to open an application by double-clicking on it
    If you can ask the user to install a JRE first, executable jar files are the way to go here. They're very simple to set up and use, and it won't cost you any money. See "Jar" in the Java Glossary for further information on how to create an executable jar file.
    Reason 3: Not having to distribute a jar file and the JRE
    Well, in some form or other, your users will need a runtime environment. Some native code compilers even require you to have a JRE installed as well! Chances are you're not going to be able to create a much smaller download, if that's the worry. However, there are other options here which make it easy to install your application. There's Java Web Start which also includes automatic upgrading of your software, but which will impose some restrictions (a bit like an applet, but slightly less restrictive) unless you sign your application. Alternatively, there are quite a few installers available, some of which are free (or free for personal use). See Installer in the Java Glossary for a list of some of them.
    Reason 4: Intellectual property protection
    Java byte-code can be decompiled pretty easily, and even obfuscators can only do so much. Here, native compilers really do make a difference. Obviously they won't make your code totally impossible to understand, but it'll be very difficult to get back to Java sources which could be modified and recompiled. The only further question to ask at this stage is whether the downsides of native compilation (eg it being a less-well-used (and therefore likely to be less solid) platform, being expensive etc) are worth the upside of the added protection. In some cases the answer will be yes, in some cases the answer will be no.
    What next?
    If, after reading through the above, you still want to try a native compiler, you can usually evaluate them before buying them. (Some are free, of course.) There's a list on Marco Schmidt's web-site, along with another view of the pros and cons.
    I go the above article in : http://www.yoda.arachsys.com/java/javaexe.html

  • Help me. I don't know which exe file to run to be able to program

    when I downloaded java 1.3.1_02, i think, there are so many 'exe' files that auto-terminates. I do not know which one to run as to be able to go to the programming thing.

    To go to a command prompt:
    If you are in Windows, open up an MSDOS window
    On Unix/Linux, open up a new window.
    Write your code in a file called xxx.java (replace xxx by the name of your program, for example, calculator.java) and when you are done, just do:
    javac *.java
    to compile your code. This creates .class files for all your classes. If there are no errors, then run
    java xxx
    (assuming xxx is the name of the program, and is the "main")

  • Could I download a disguised virus in a fake Firefox update? Ever since the last upgrade none of my .exe files will run. The version number of the upgrade was lower than the latest version. My computer is in real trouble!

    I deleted the "upgraded" version and tried to reload the latest version from Firefox website. I could download it but could not run it. Computer asks for an application to run the file with, and there is none. Also, all of my system applications now no longer respond.

    That does sound suspicious. You may want to run some supplemental scans. These two tools are highly regarded:
    Malwarebytes Anti-malware : http://www.malwarebytes.org/products/malwarebytes_free
    SUPERAntiSpyware : http://www.superantispyware.com/
    If your system is clean of malware, you could completely remove all versions of Firefox and install again.
    First, I strongly recommend backing up your Firefox settings for future recovery. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Get the latest installer from http://www.mozilla.com/

  • Webserver in seperate exe file??

    Hi Guys
    So - I'm developing a piece of software that aqquires data from a USB board - this has been working well for years, everybody is happy..
    Now I want to publish the results to users via the NI web server.. Using the web publishing tool I have created a html doc from a sub VI within  the main application with the front panel I wish to publish, and that displays various values updated every 5 seconds..(the monitor function, NOT remote control).. I quickly realized that when a number of browsers are looking at the VI my main application starts to hang - have not been able to fully understand why, but I guess the NI core waits for each request to be shipped.. not really a problem since I'm not doing a VI to be published on facebook with +1.000.000 viewers - but since it potentially stalls the entire application, I risk that my measurement is disrupted, which is a no go, since the measurement may be in the field somewhere, and not next to a guy at an office desk.. Thus - I moved the call to the sub-VI into an external call using a static VI reference and the front panel open / Run methods and the "wait untill Done" flag set to false.
    This too is working very well and inside the development system I can now "sabotage" the application with multiple hits on the "refresh" button of a browser without stalling the application.. now problems arise - part because I do not have a full working knowledge of how the runtime engine operates, i guess - but... when I build this program into an exe, I can again stall the program by hitting the "refresh" button fast.... I assume that the runtime engine treats everything called from within the exe file in one thread?? 
    Questions:
    Is there a way (in a labVIEW .EXE file) to call a VI from another VI that totally separates them from each other so that if 'mainprogram' calls 'webserver', and 'webserver' hangs for some reason, this does not cause 'mainprogram' to equally hang? Could I for instance change the execution system of the VI with all 'webserver' related contant in the "execution" options?
    If not - I guess building two exe files 'mainprogram' & 'webserver' and then launch 'webserver' using system exec from 'mainprogram' will prove a solution.
    however - this means that now passing of data is no longer possible - in 2010 using lv8.6, what is the best means to move data back and forth between two seperate exe files? Ideally I would send a cluster of refnum's of the indicators from 'mainprogram' then read the values of these in 'webserver' and update the display here - but is the reference addresses from one exe, anything worth in the other exe (two seperate address spaces etc)?
    Should I learn to use datasockets - or would a TCP approach be the best? We are not talking massive amounts of data - in the area of 15 value and string controls + 2 graphs with less than 1000 points. Remember that this should only be done locally between two exe files on the same computer, to I would prefer to keep this as simple as possible - something like a pipe used in Unix code. 
    Last but not least - is there a way to run 'webserver' as some sort of service, so that the user will avoid having a window open he does not need, or a minimized 'webserver' window in the taskbar?
    many questions - and yes I know that I can read all about datasockets and TCP in the forum halls - and I'm doing it, but I would prefer to not waste too many days brushing up on new stuff not needed because my plan is wack from the start..
    Thank you for your help. 

    this is my question regarding the .exe files.
    what if i whant to make my project available for every one, not only for those that already have jre instaled, and someone that doesn't know or doesn't want to install jre want's to benefit from it????
    what do u have to answer to that??
    a serious answer please..!!

  • Missing vi.lib files in Run-Time LabVIEW 2012

    Hi
    I've got a problem executing VI's under RT in LabVIEW 2012.
    Our system consist of multiple independent modules which are opened and run from a Manager VI. VI paths to the modules are read from an .ini file by the Manager VI.
    We have build a single executable (RT Launcher) that takes the path of the Manager VI as argument (Attachment : RT Launcher.png).
    The RT Launcher is placed in the ..\National Instruments\LabVIEW 2012 folder as the LabVIEW.exe.
    The RT Launcher is called from the CLI.
    "C:\Program Files\National Instruments\LabVIEW 2012\RT Launcher.exe" "C:\Workspace\Labview\Manager.vi"
    This will run the Manager.vi in the RunTime Environment and the Manager.vi will open the .ini file and execute the Module VI's one by one.
    By calling the RT Launcher.exe from the same folder as the LabVIEW.exe, the search paths should be the same.
    The system worked fine in LabVIEW 2010.
    The Manager VI is opened with broken arrow and the errors indicate that vi.lib sub VIs are missing (attachment : Manager VI errors.png)
    I know there are issues regarding object cache and separated compiled code from LV2010 -> LV2011 -> LV2012, but simply can't figure out how to come around this problem.
    Can anyone explain the difference and how to solve the problem ?
    Thanks
    Regards Kahr
    Certified LabVIEW Architect
    CIM A/S
    Solved!
    Go to Solution.
    Attachments:
    RT Launcher.png ‏68 KB
    Manager VI errors.png ‏35 KB

    Hi Kahr.
    It sounds like you are making some dynamic calls to VI's, eg. by using 'Open VI Reference'. My answer is based on that assumption. 
    You are absolutely right. In LabVIEW2010 we introduced a function called 'Separating Compiled Code from VI'. At that time none of the VIs from VI.lib had that option enabled. In LabVIEW2011, many VI's in VI.lib have, by default, a separation of compiled code and VI. This option cannot be changed (greyed out) for these VI's as well. This feature was introduced in order to simplify source code control.
    Separating Compiled Code from VIs and Other File Types
    The drawback is, that it is no longer possible to call VI's dynamically from an application (executable), when this option in enabled, since the compiled code no longer exists. The method of calling a VI dynamically from an application has been (and still is) used to make some kind of a plug-and-play architecture, meaning we have one EXE-file that only gets distributed once and a set of subVI's that gets redistributed according to new versions (new features added to the subVI), meaning we can make changes in the subVI without having to redistribute the EXE-file.
    With the release of LabVIEW2011 and LabVIEW2012 we can no longer distribute VI's that uses functions from vi.lib, this also include DAQmx calls even though the DAQmx driver is installed.
    The simple explaining is, that it has never been intended that VI's got distributed. Eg, when Microsoft is making a new software update for Windows7, they don't send out the source code to all the users.
    The solution is therefore to wrap up the source code into 'something' that includes all the compiled files. In LabVIEW we do that in a couple of different ways.
    1) Include the VI's in the EXE-file.
    When building the application, we have the option to include files, that normally is not included in builds. If we call a SubVI dynamically this will not automatically be included! However, the drawback of this method is, that if you need to change  something in one of your SubVI's, you would need to build and distribute the entire application. Thereby, we are not making use of the plug-and-play architecture that we originally wanted. However, this method will fix the error.
    Error 1003 When Using VI Server in a LabVIEW Application
    2) Now, if we still want the plug-and-play architecture in LabVIEW2011+2012 (and this will properly be the same for the next many released of LabVIEW), this can still easily be achieved by making a Source Distribution. When we make a Source Distribution, we can include the VI's from VI.lib and thereby the compiled code. When using this method, two important things should be remembered:
    a) Make the files into a LLB file. This will pack all the VI's into one single file, that is easy to distribute.
    Go to Destinations ==> Destination Type ==> LLB.
    b) Make sure not to 'Exclude files from vi.lib', as this method will then simply not work.
    Go to Additional Exclusions ==> Remove checker mark in 'Exclude files from vi.lib'.
    How Can I Call a VI Dynamically from an Executable Without Including Those VIs in the Build?
    I have made a small example to demonstrate this:
    Example: Using vi.lib
    This example has two mainVIs and two EXE-applications. Build the two EXE-files, but do NOT build the source distribution yet.
    1) Main(IncludeSubInExE). This version has included the subVI in the build distribution for the EXE-file. When running this EXE everything works fine, even when calling the subVI dynamically. However, since the subVI is build into the exe, we would have to redistribute the exe for every new version of the subVI. This breaks the hole idea.
    2) Main. The subVI is no longer included in the build. When running and trying to call the subVI, you will get this error (on both your developer and run-time machine):
    Now, build the Source Distribution and run this EXE again. The exe is running perfectly with no errors.
    I hope this answers your question.
    Best Regards
    Alex E. Petersen
    Certified LabVIEW Developer (CLD)
    Application Engineer
    Image House PantoInspect
    Attachments:
    Using vi.lib.zip ‏83 KB

  • Linking swfs or exe files?

    I need help with a Flash AS3 project that includes about 30 videos. I needed to break it in smaller pieces because it is a large file (over 300 mb) and every time I wanted to publish the entire project flash crashed.
    Here is my test:
    I have two exe files that should link back and forth.
    Intro_YIM.exe, which has a button that links to Videos_FrontPage_YIM.exe
    Here is my code, which is in Intro (button name= nav_4).
    nav_4.addEventListener(MouseEvent.CLICK, gotoVideoFront);
    function gotoVideoFront(event:MouseEvent):void {
      var url:String = "Videos_FrontPage_YIM.exe";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_self');
      } catch (e:Error) {
        trace("Error occurred!");
    Problem:
    The link seems to work, but there is a message that says save or run. When I click run, there is another message that says the file can't be open.
    Questions:
    1. Is there a better way to handle links using executable files using Flash CS5 and AS3?
    2. If swfs were used, how can I have a main page displaying all other swfs as they are linked?

    Kglad:
    Yes, initially I thought that exe files was the way to go. However, I've been searching for options and found that by using the class Loader, I can load swfs files instead of exe files.
    Here is what seems to work with only swf file:
    var my_loader:Loader = new Loader();
    nav_4.addEventListener(MouseEvent.CLICK, startLoading);
    function startLoading(e:MouseEvent):void {
        my_loader.load(new URLRequest("Videos_FrontPage_YIM.swf"));
        addChild(my_loader);
    Problem: I have a interface, which loads all other files by way of buttons. For instance, nav_4 button loads the file Videos_FrontPage.swf. When this movie loaded, the interface was also gone.
    How can I keep the same interface and still be able to load all other movies?
    Your help is appreciated.

  • Can not see cFP-2220 after creating an exe file

    I am using a cFP-2220 with LabView 2011. I can see the cFP-2220 with Max, the program I created runs in my PC but the data from the cFP-2220 it is slow to up date.
    I access the cFP-2220 thru the network terminal and a net card in my PC.
    I have created an EXE file to run in the PC for that test stand as a stand along program. The program runs but it does not see the cFP-2220 or any of the data been collected. The test stand PC does have MAX install. When I run MAX in the stand PC it sees the cFP-2220 and can read the data from the modules the PC is wire to the cFP-2220 thru a net card.

    Sorry for the delay to respond... I do have installed the minimun files that are available  Field Piont 6.0.10 and LabView RT 11 is part of them.
    I also using share variables. The program VI runs fine in my PC but when I create the exe file and deploy on the test stand it asks fot the location of the FPLV,dll and the NI_TGT.dll and it can not read or write to any of the DAQmx vi's.
    I accidently remove one my FP-SG-140 from the list of inputs, I did put it back but I damage how the share variables weere working I am getting and error -1950679023 and it does not see any of my inputs.
    I have another question how do I down load the variables to the cFP-2220 that is another erros that shows up when I installed other files into the cFP.

Maybe you are looking for