Build Applicatio​n with all files inside .exe

Hello,
I have a labview project consisting of a few classes and subvi's. Nothing really special. Now when i try to build an .exe file, i get the .exe, an application.ini, an Application.aliases and an data folder (has the classes and dll's within). What i want however is the .exe file with all files inside. So that at the test setup, there is only one file on de dekstop, and not 4. Is it possible to do that?
Greetings wcm 

LabVIEW 2009 and later have a build option (set on per default) that embeds all the classes inside the executable file.
The ini file will always be created, however you can delete it during startup of your executable.
I think you don't need the data folder since that has some DLL already present on your system.
However my advise is to create an installer that puts the executable (and the other files) inside the program files folder. And the installer can create a shortcut to the executable.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!

Similar Messages

  • How to Read all files inside resource Folder inside Jar?

    I have a Jar file,,,, The program reads for resource files in the resource folder inside the Jar. I want my program to read all files inside this folder without knowing the names or the number of files in the folder.
    I am using this to make an Applet easy to be updated with spicific files. I just want to add a file inside the resource folder and Jar the program and automatically the program reads what ever is in there!!
    I used the File class to get all file names inside the resource folder. it works fine before Jarring the program. After I jar I recieve a URI not Herarichy Exception!!
    File fold=new java.io.File(getClass().getResource(folder).toURI());
    String[] files=fold.list();
    I hope the question is clear!!

    How to get the directory and jar file that you class resides in:
    // returns path and jarfile (ex: /home/mydir/my.jar)
    public String getJarfileName()
            // Get the location of the jar file and the jar file name
            java.net.URL outputURL = YourClass.class.getProtectionDomain().getCodeSource().getLocation();
            String outputString = outputURL.toString();
            String[] parseString;
            int index1 = outputString.indexOf(":");
            int index2 = outputString.lastIndexOf(":");
            if (index1!=index2) // Windows/DOS uses C: naming convention
               parseString = outputString.split("file:/");
            else
               parseString = outputString.split("file:");
            String jarFilename = parseString[1];
           return jarFilename;
    }If your my.jar was in /home/mydir, it will store "/home/mydir/my.jar" in jarFilename.
    note: getLocation returns "file:/C:/home/mydir/my.jar" for Windows/DOS and "file:/home/mydir/my.jar" for windows, thus why I look for the first and last index of the colon so I can correctly split the string.
    If you want to grab a file in the jar file and get an InputStream, do the following:
    import java.io.*;
    import java.util.Enumeration;
    // jar stuff
    import java.util.jar.*;
    import java.util.zip.ZipEntry;
    public class Jaris
       private JarFile jf;
       public Jaris(String jarFilename) throws Exception
           try
                           jf = new JarFile(jarFilename);
           catch (Exception e)
                jf=null;
                throw(e);
       public InputStream getInputStream(String matchString) throws Exception
           ZipEntry ze=null;
           try
              Enumeration resources = jf.entries();
              while ( resources.hasMoreElements() )
                 JarEntry je = (JarEntry) resources.nextElement();
                 // find a file that matches this string from anywhere in my jar file
                 if ( je.getName().matches(".*\\"+matchString) )
                    String filename=je.getName();
                    ze=jf.getEntry(filename);
          catch (Exception e)
             throw(e);
          InputStream is = jf.getInputStream(ze);
          return is;
       // for testing the Jaris methods
       public static void main(String[] args)
          try
               String jarFilename=getJarfileName();
               Jaris jis = new Jaris(jarFilename); // this is the string we got from the other method listed above
               InputStream is=jis.getInputStream("myfile.txt"); // can be used for xml, xsl, etc
          catch (Exception e)
             // this is just a test, so we'll ignore the exception
    }Happy coding! :)
    Doc

  • How to count all files inside a disk?

    Hi,
    is there any free app to count all files inside a hard disk or volume without open all volumes and folders?
    Not the size, but the number of files.
    Thank you very much.

    Disk Utility displays a full drive folders and files
    Finder with Show Status Bar, displays folder items at the bottom the Finder window
    Do you require further information than these?

  • How can I create a array with all files from a directory

    How can I create a array of files or varchar with all files from a directory?

    I thought the example could be improved upon. I've posted a solution on my blog that doesn't require writing the directory list to a table. It simply returns it as a nested table of files as a SQL datatype. You can find it here:
    http://maclochlainn.wordpress.com/2008/06/05/how-you-can-read-an-external-directory-list-from-sql/

  • Reading All Files inside folder codeBase, Applet!

    I have an applet, placed in a Jar file.. everything is ok,,
    I have a resource folder outside the Jar, which has some files.
    how can I read what is inside the resource folder, which is located outisde the Jar, without having their addresses before hand!!
    in short, I would like the applet to open the resource folder, get an array of all files in the folder, and then reads them.
    I tried encapsulating the getCodeBase().toURI() with a File Object.
    But when I call the file.list() it throws an AccessControlException
    thank you.

    Here is a simple example of using ftp to obtain file list using Jakarta common net package.
    // ftp - related imports
    import org.apache.commons.net.ftp.FTPClient;
    import org.apache.commons.net.ftp.FTPReply;
    // main method
              FTPClient ftpClient = null;
              try {
                   ftpClient = new FTPClient();
                   ftpClient.connect("REMOTE_HOST", "remote port, use 21 in common case");
                   System.out.print(ftpClient.getReplyString());
                   int reply = ftpClient.getReplyCode();
                   if(!FTPReply.isPositiveCompletion(reply)) {
              ftpClient.disconnect();
              System.err.println("FTP server refused connection.");
              System.exit(1);
                   boolean isLoggedIn = ftpClient.login("your login", "your pass");
                   ftpClient.changeWorkingDirectory("/your remote dir/");
                   String[] fNames = ftpClient.listNames();
                   for (int i = 0; i < fNames.length; i++) {
                        System.out.println(fNames);
                   ftpClient.logout();
              } catch (IOException e) {
                   e.printStackTrace();
              } finally {
                   if(ftpClient.isConnected()) {
                        try {
                             ftpClient.disconnect();
                        } catch(IOException ioe) {
                             ioe.printStackTrace();
    System.exit(0);

  • I am trying to convert PDF to word. With my PC  I get a message  "Error occurred while trying to access the service.   It worked fine for a long time.  Has been doing this for days now with all files i try to convert.

    I am trying to convert PDF to Word with Adobe Export PDF on my PC.  I get the message " error occurred while trying to access service".  Has worked fine in past.  Has been doing this for a few days now on all files i try to convert.    Any ideas?? Thanks

    Hi bert090909,
    Are you trying to convert your files from within Adobe Reader? If so, please make sure that you have the most current version by choosing Help > Check for Updates. Earlier versions of Reader could cause the specific error that you're reporting.
    Please let us know how it goes.
    Best,
    Sara

  • Build applicatio​n with LabView 8.2 Prof

    Hello,
    in the past (V 6.1) it was possible to build LabView application with a complete setup routine, not only *.exe. In Version 8.2 I dont find these option. Anybody knows where to find it?
    Best regards
    Robert

    I think that what you want it's to create an installer. See the steps on the attach picture.
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    teste.png ‏333 KB

  • Associating custom app with all files of certain extension

    I have an applescript which I saved as an application. I want all files with the .url extension to be opened with this app.
    If I drag+drop a .url file onto the app's icon, it opens with the app. I can also associate a single file with this app using Finder->Get Info and with RCDefaultApp. However, when I try to associate all .url files with this app, the old app immediately gets reselected. This happens both in Finder and RCDefaultApp.
    How can I get the association to work for all .url files?

    Perhaps I didn't explain correctly. I go to a .url file and Get Info. Under Open With I browse to my new application (with Always Open With checked) and click ok. Now the info window says Open with: my new app. If I stop here, then this single file will be associated with my app. However, I then click Change All and Continue and now the info window says Open with: Safari. This is the part I meant when I said that it immediately changes back when I try to change all.
    Alternately, using RCDefaultApp: I open RCDefaultApp, click on the Extensions tab, and select url. Default Application is Safari. If I change it to Firefox, it stays on Firefox. As opposed to if I select the app I made. If I do this, it flickers as if my app was selected for a moment then the selection reverts to what it was before I selected my app.

  • App-v packages not getting distributed with all files to DP's

    Hi ,
    I am migrating appv 4.6 packages from standalone to sccm 2012 , using application model in sccm,
    all seems to be fine , but sccm is not distributing the folders,vbscripts, etc except osd,xml,sft,sprj.. to DP
    what is the issue any resolution for this.
    app has lot of dependency on vbscripts to run.
    screenshot for reference.

    That's most likely fine because ConfigMgr stores the content in the contentlib. Also see that all files have the .INI extension. You can use Content Library Explorer (part of the R2 toolkit) to examine the package. 
    Torsten Meringer | http://www.mssccmfaq.de

  • Workshop IDE Build does not include all files

    We have property files also which we want included as part of the build process
    but if we use the IDE build it does not include them. We have to therefore export
    the IDE build and customize it to include *.properties like this
    <zip basedir="${dest.path}" zipfile="${ejb.outputJar}" encoding="UTF8"> <!-- JARs
    filenames are encoded UTF8 -->
    <zipfileset dir="${project.local.directory}" includes="*.properties" />
    </zip>
    which causes a problem for us because the exported build file is specific to a
    user's local PC and cannot be used in a team environment.
    How can we have the IDE build include all the files within a project i.e. include
    properties files also.
    Thanks
    Mindy

    Hi Mindy,
    Why not in EJB?
    Yes there is no argument as to why property files cannot be copied over from EJB
    project.
    The reason is that Workshop has not implemented the feature with EJBProject. We
    have that feature only for Java projects and not for EJB project.
    Thanks a lot,
    Vimala
    "Mindy" <[email protected]> wrote:
    >
    You are saying the same thing again. My question is why not for EJB projects?
    I know we can create the files in Java project and read them with specific
    java
    files to read them but WHY NOT IN EJB IS THE QUESTION?
    "Carl" <[email protected]> wrote:
    Feature of the EJB Project:)
    "Mindy" <[email protected]> wrote in message
    news:4034c351$[email protected]..
    We have these property files in the EJB project, not Java project.Why
    should they
    not be copied if they are part of the EJB project?
    "Carl" <[email protected]> wrote:
    The properties file do get copied over if they are part of Java project.
    Hence, we have created utility classes in Java project that read
    the
    property file.
    For other project types, like EJB the property files didn't get copied...
    "Mindy" <[email protected]> wrote in message
    news:4033b944$[email protected]..
    We have property files also which we want included as part of the
    build
    process
    but if we use the IDE build it does not include them. We have to
    therefore
    export
    the IDE build and customize it to include *.properties like this
    <zip basedir="${dest.path}" zipfile="${ejb.outputJar}" encoding="UTF8"><!-- JARs
    filenames are encoded UTF8 -->
    <zipfileset dir="${project.local.directory}"includes="*.properties" />
    </zip>
    which causes a problem for us because the exported build file is
    specific
    to a
    user's local PC and cannot be used in a team environment.
    How can we have the IDE build include all the files within a projecti.e.
    include
    properties files also.
    Thanks
    Mindy

  • How do I make Word documents to open in Word automatically after downloading the way they used to before I chose "Do this automatically with all files of this type?"

    I teach online, and my students post Word files to a Gradebook where I can click on the link and download their papers. Recently, because I got tired of having to tell Firefox what to do, I checked the box that tells it to open all Word documents with Word automatically. Now, it downloads the files, but they don't open in Word anymore, so I have to go to Downloads and open them manually. I don't know why this changed--I thought I was saving myself time. Going to Applications doesn't work--it says, when I type in Word documents (that doesn't appear in the list unless I type it), that I've chosen "Always ask." But when I click on the link, I don't get that old dialog box anymore! Help!

    See this article:
    [http://support.mozilla.com/en-US/kb/Managing+file+types]

  • Use JFilechooser to read all Files inside Directory

    Hello gang!
    I was wondering how to modify the code below to allow it to select Files AND Directories. If it selects a Directory, I want it to be able to look in that directory for all .jpg files, and return a list of all the jpg files to me. It does not have to search in any subfolders..only the folder that the user selects with the jfilechooser.
    File defaultDirectory = new File("C:\\"); // Set Default Directory
    JFileChooser fc = new JFileChooser( defaultDirectory );
    fc.addChoosableFileFilter(new ImageFilter());
    fc.setFileView(new ImageFileView());
    fc.setAccessory(new ImagePreview(fc));
    fc.setMultiSelectionEnabled(true);
    int returnVal = fc.showDialog(currentFrame, "Attach");
    if (returnVal == JFileChooser.APPROVE_OPTION)
    File files[] = fc.getSelectedFiles();
    for (int b=0; b < files.length; b++)
    String pathName = files.getAbsolutePath();
    storeInfoRef.setFiles(pathName);
    defaultDirectory = files[0];
    fc.setCurrentDirectory( defaultDirectory ); // New Default Dir
    else
    { System.out.println("Attachment cancelled by user"); }

    I have solved my problem. For anyone with a similar problem here is the code I added since my last post
    JFileChooser fc = new JFileChooser( defaultDirectory );
    fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
    fc.addChoosableFileFilter(new ImageFilter());
    fc.setFileView(new ImageFileView());
    fc.setAccessory(new ImagePreview(fc));
    fc.setMultiSelectionEnabled(true);
    int returnVal = fc.showDialog(currentFrame, "Attach");
    if (returnVal == JFileChooser.APPROVE_OPTION) //If Button Pressed
    File files[] = fc.getSelectedFiles(); // Get Users Selections
    for (int b=0; b < files.length; b++) // For Each Selection
    if ( files.isDirectory() ) // If User Selected a Directory
    File[] folderFiles = files[b].listFiles(); // Get contents of folder
    log.append("For folder: " + files[b].getName() + "." + newline);
    int count=0; // Keeps Count of # of Image Files
    for ( int i=0; i < folderFiles.length; i++ ) // For each item in folder
    if( (folderFiles.getName().endsWith(".jpg") ) || //If file is an Image
    (folderFiles[i].getName().endsWith(".jpeg")) ||
    (folderFiles[i].getName().endsWith(".bmp") ) ||
    (folderFiles[i].getName().endsWith(".gif") ) ||
    (folderFiles[i].getName().endsWith(".tif") ) ||
    (folderFiles[i].getName().endsWith(".tiff") ) )
    System.out.println( folderFiles[ i ].getName() );
    String pathName = folderFiles[i].getAbsolutePath(); //Get Path of File
    storeInfoRef.setFiles(pathName); //Save Path of File
    log.append(" Attaching file: " + folderFiles[i].getName() + "." + newline);
    count++; //Increase Counter
    if ( count == 0 ) // If No Images
    log.append( " There are no Image Files to Attach" );
    else if ( files+.isFile() ) // If User Selected File(s)
    String pathName = files[b].getAbsolutePath();
    storeInfoRef.setFiles(pathName);
    System.out.println ("File Size: " files[b] +" is "+files.length() );
    log.append("Attaching file: " + files[b].getName() + "." + newline);
    defaultDirectory = files[0];
    fc.setCurrentDirectory( defaultDirectory ); // New Default Dir
    else
    { log.setText("Attachment cancelled by user." + newline); }

  • Ant help - building a jar with image files.

    I have a jar that contains a handful of image files in a "resources" folder. I used the following command:
    jar -cf resources.jar resources/Now I need to make ANT do the same thing. I tried the following, with no success:
    <property name="build" location="bin"/>
    <property name="dist" location="jars"/>
    <jar jarfile="${dist}/resources.jar" basedir="${build}">
      <arg value="-cf" />
    </jar>In the above example, the "bin" directory contains the "resources" directory that I want to put into the jar. Basically, I need to know how to specify the "-cf" args, and how to specify the target directory as "resources." Can anyone tell me how this is done?
    Thanks.

    Hi micah,
    I can just give you an hint:
    With Ant each tasks has its own properties wich are described in xml. So for your jar generation you should look for the possibilities in the description of the ant task in.
    http://ant.apache.org/manual/index.html
    I guess you need some <include> elements in your <jar> target.
    Regards,
    Martin

  • How do I restore Parallels with all files and programs?

    My wife has many "scrapbook" files stored on Parallels. I reformatted my Macbook Pro but now I need to restore Parallels and all those files. Anyone know how to save me from the wrath of Cath?
    T.

    Do you have a backup of the system on which Parallels was installed? If not, then there's no way to restore it. If you do have a backup you will have to locate all the Parallels folders and files to their respective locations on your system disk. Parallels creates folders for its essential files including the the pseudo-disc in a variety of locations. You will also need to install Parallels again.
    Look for the Parallels folders in the /Home/Library/ folder, /Home/Library/Applications Support/ folder, and in your /Home/Documents/ folder. Preference files are in the /Home/Library/Preferences/ folder.

  • Rewrite a complete HTML page with all result inside with JSP

    i have generate a HTML page with JSP. Then by an action on a menu on the left frame,i have to rewrite this page with the data already seized, and more code inside(i.e complete the page).
    How can i do ?

    Use JavaScript to tell the other frame to reload or to go to another location. Generate the JavaScript if you're processing a request of the menu...

Maybe you are looking for

  • MacBook Pro starts up with blinking folder and question mark in it. Is there a fix to this issue or has the HDD crashed for good?

    I startup my mac and I see a white screen background with a folder icon in the center and a question mark blinking in the center. Called Apple and the rep says this is probably a HDD crash. Only solution is to take it into a Apple store and get a rep

  • How do I rotate the entire slide show canvas?

    I have a slide show that will ultimately be in portrait mode (1125 x 1500), but it needs to be built in a landscape mode with everything rotated and then the actual porjector will be turned to be projected on a portrait screen. Stupid, I know. How ca

  • Eliminating a row

    Hi All - I am trying to do the following. I have a set of record with amount type with associated amounts. At the end of each account, I am trying to get the total, Like below: amount_type      amounts      Amount_type_id      Year Vacation     200  

  • Reentrant / invariant VIs how to use...

    Hello, I have a problem to run a vi reentrant (invariant). I set the vi properties to reentrant and tried out two ways to start the vi. The vi is intended to open a new little window showing a device name and retrieving a measurement value for that d

  • Autosave documents in pages

    After using Pages for about a year, and generally liking it, I lost a day's worth of work when my battery died. I opened Pages and searched all the menus for the Auto Restore function before it dawned on me that Pages cannot automatically save your d