Menubar by Editing ini file

Hi All,
I want to bulild VI that dispalys Menubar [Header] and submenus on front panel.This all is done through reading \ parsing one *.INI file.
In future user will edit only *.INI file for adding or removing menus \ submenus [User will not modify VI code].
Please suggest where i can get such sample VI code. Guidlines are also very needful.
Thanks regards
Tushar 

You might want to start with the Dynamic Insert Demo.
Open Help->Example Finder, Select the Search Tab, and keyword 'Menus'.  Then select the Dynamic Insert Demo.
For LabView 8.5 with normal installation it is located here.
C:\Program Files\National Instruments\LabVIEW 8.5\examples\general\menubars.llb\Dynamic Insert Demo.vi
It will show how to dynamically add menu items to your runtime menu.
How you handle the .ini is a matter of preference.
How you respond to the menu selection is dependent on what you want to happen with the menu selection. (Launch a program, open a window, etc.) But a good start for that is also on the Example Finder, select the Menu-Selection with Events example.
Jon D
Certified LabVIEW Developer.

Similar Messages

  • How to create and edit a .ini file using java

    Hi All...
    Pls help me in creating and editing an .ini file using java...
    thanks in advance
    Regards,
    sathya

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • I need to move my profile to an external drive but the edits I make to the profile.ini file don't seem to be working

    I am using a Mac, and need to have my profile be on an external drive. I edit the profile.ini file per the instructions I found here:
    https://support.mozilla.org/en-US/kb/profiles-tb
    but it's not working. I must have the path wrong. Again, I am using a Mac. Here is the info in the profile.ini file:
    [General]
    StartWithLastProfile=1
    [Profile0]
    Name=default
    IsRelative=0
    Path=Macintosh%HD/My%20Passport/Thunderbird/Profiles/o6fqy09d.default
    Default=1
    Do you see anything about the path that looks incorrect? The "My Passport" is the external drive.
    Also, if there was an updated disk image for Portable Thunderbird, I could try setting that up but all I can find is a very old one which I tried but it won't update.
    Thank you,
    Todd

    The "My Passport" external drive must be mounted somewhere in the file system. That's the path you need to use.

  • How to edit the setup.ini file of the Adobe Reader X MUI?

    Hi everyone.
    I discovered today that is is possible to edit the setup.ini file of the Adobe Reader X MUI  10.1  installer (multilingual)  in order to customize the installation. I stil have some questions about this.
    1. I would like to make a custom installation of Reader X in german, english, french and spanish. Is this possible? I want to leave out all other languages from my installation..,.
    2.  I would like to edit the ini file to make an automatic update of my Reader, by installing all the patches (10.10, 10.11, 10.12, 10.13, 10.14, 10.15 and 10.16). Is this possible?
    I patched my Reader manually, but when I install only the 10.15 and 10.16 updates, some functions are still missing (signature toolbar and add text function) so I suspect the patches are not-cumulative.
    Can anyone on the forums show me the right codes for doing this? How can I get a 4-language upgraded Reader X?
    Sincerely yours.
    K. Adam.

    See the docs: http://www.adobe.com/devnet-docs/acrobatetk/index.html.
    The admin guide tells you what updates are cumulative (all 10.x quarterlies) and how to set the lang via the cmd line. However, check out the Wizard Guide and download the free Wizard to customize your install and .ini as needed. Much easier.
    hth,
    Ben

  • Edit ClipboardFormatsPriorities in maker.ini file

    FrameMaker 10 (v. 10.0.2.419), Window 7.
    When copying text from Word into FrameMaker, I would like "TEXT" to be the first item in the dialog box when using Paste Special.
    We have edited the ClipboardFormatsPriorities in the maker.ini file by moving TEXT from the end to the beginning of the line:
    ClipboardFormatsPriorities=TEXT, FILE, MIFW, MIF, RTF, OLE 2, META, EMF,  DIB, BMP, UNICODE TEXT
    So far, the changes have not taken affect.
    Can this be done?
    Thanks
    Debbie

    There are two maker.ini files; one system, one (for each) user.
    Which did you edit?
    I assume the user file has the last word, but don't really know, as this isn't an issue on the old FM I run.
    And did you exit and re-start FM?

  • Editing Executable's INI file with "HideRootWindow"

    Hello
    I'm trying to create an executable so that it shows only one window in the taskbar. On one of the Knowledgebase articles (http://digital.ni.com/public.nsf/allkb/6E660558F3D420C786256FCB005B4F52) I had read about setting HideRootWindow=True in the INI file. I did and it worked. The problem though is that everytime I rebuild the exe in LabVIEW, the line disappears & I have to manually edit the INI file each time. I was wondering if there was anyway I could do it automatically though LabVIEW so that it itself appends that line to INI file at each Build process.
    Appreciate any help. Thank you!
    Solved!
    Go to Solution.

    Instead of checking Use the default LabVIEW Configuration file, uncheck this option and add your own ini file. Also make sure that you add the ini file to the Project too! This will help in maintenance.
    Hope this helps.

  • Why even unchecked my crash reports are sent? I have to manually edit the "application.ini" file at every update! This is unacceptable to the user's choice!

    Why even unchecked my crash reports are sent? I have to manually edit the 'application.ini' file at every updates! This is unacceptable for the user's choice!

    Check the SubmitCrashReport (DWORD) key in the registry and set the value to 0.
    *HKEY_LOCAL_MACHINE\Software\Mozilla\Firefox\Crash Reporter\SubmitCrashReport: DWORD
    *HKEY_CURRENT_USER\Software\Mozilla\Firefox\Crash Reporter\SubmitCrashReport: DWORD
    You may need to check the HKLM\Software\Wow6432Node\ node on 64 bit Windows.
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter

  • How do I hide Windows .ini files in a dock folder?

    Background: On my MacBook Pro, I divided my hard drive into 3 partitions - one for Mac OS X, one for Windows 7, and one for common storage that I use to transfer my files between OS's.
    With this setup, I set my Dropbox folder on the "common storage" partition, and created a Dropbox dock folder for easy access. This isn't really a major problem, but it simply annoys me. Since Windows also has access to the Dropbox folder, it creates a desktop.ini file that shows up whenever I use the Dropbox dock shortcut. I tried editing it through Finder, but it's already hidden. It only shows up in the dock folder.
    Is there a way to hide this .ini file?

    What do you mean deleted from the user's list?  Do you mean removed permissions?  If so, right click the folder and select get info.  Scroll down to sharing and permissions.  Click the lock and put in your password.  Then click the + and add the user back.
    Otherwise, more details...

  • Syntax error in NQSConfig.ini.file

    # NQSConfig.INI
    # Copyright (c) 1997-2006 Oracle Corporation, All rights reserved
    # INI file parser rules are:
    # If values are in literals, digits or _, they can be
    # given as such. If values contain characters other than
    # literals, digits or _, values must be given in quotes.
    # Repository Section
    # Repositories are defined as logical repository name - file name
    # pairs. ODBC drivers use logical repository name defined in this
    # section.
    # All repositories must reside in OracleBI\server\Repository
    # directory, where OracleBI is the directory in which the Oracle BI
    # Server software is installed.
    [ REPOSITORY ]
    Star     =     OracleBIAnalyticsApps.rpd, DEFAULT
    # Query Result Cache Section
    [ CACHE ]
    ENABLE     =     NO;
    // A comma separated list of <directory maxSize> pair(s)
    // e.g. DATA_STORAGE_PATHS = "d:\OracleBIData\nQSCache" 500 MB;
    DATA_STORAGE_PATHS     =     "C:\OracleBIData\cache" 500 MB;
    MAX_ROWS_PER_CACHE_ENTRY = 100000; // 0 is unlimited size
    MAX_CACHE_ENTRY_SIZE = 1 MB;
    MAX_CACHE_ENTRIES = 1000;
    POPULATE_AGGREGATE_ROLLUP_HITS = NO;
    USE_ADVANCED_HIT_DETECTION = NO;
    MAX_SUBEXPR_SEARCH_DEPTH = 7;
    // Cluster-aware cache
    // GLOBAL_CACHE_STORAGE_PATH = "<directory name>" SIZE;
    // MAX_GLOBAL_CACHE_ENTRIES = 1000;
    // CACHE_POLL_SECONDS = 300;
    // CLUSTER_AWARE_CACHE_LOGGING = NO;
    # General Section
    # Contains general server default parameters, including localization
    # and internationalization, temporary space and memory allocation,
    # and other default parameters used to determine how data is returned
    # from the server to a client.
    [ GENERAL ]
    // Localization/Internationalization parameters.
    LOCALE     =     "English-usa";
    SORT_ORDER_LOCALE     =     "English-usa";
    SORT_TYPE = "binary";
    // Case sensitivity should be set to match the remote
    // target database.
    CASE_SENSITIVE_CHARACTER_COMPARISON = OFF ;
    // SQLServer65 sorts nulls first, whereas Oracle sorts
    // nulls last. This ini file property should conform to
    // that of the remote target database, if there is a
    // single remote database. Otherwise, choose the order
    // that matches the predominant database (i.e. on the
    // basis of data volume, frequency of access, sort
    // performance, network bandwidth).
    NULL_VALUES_SORT_FIRST = OFF;
    DATE_TIME_DISPLAY_FORMAT = "yyyy/mm/dd hh:mi:ss" ;
    DATE_DISPLAY_FORMAT = "yyyy/mm/dd" ;
    TIME_DISPLAY_FORMAT = "hh:mi:ss" ;
    // Temporary space, memory, and resource allocation
    // parameters.
    // You may use KB, MB for memory size.
    WORK_DIRECTORY_PATHS     =     "C:\OracleBIData\tmp";
    SORT_MEMORY_SIZE = 4 MB ;
    SORT_BUFFER_INCREMENT_SIZE = 256 KB ;
    VIRTUAL_TABLE_PAGE_SIZE = 128 KB ;
    // Analytics Server will return all month and day names as three
    // letter abbreviations (e.g., "Jan", "Feb", "Sat", "Sun").
    // To use complete names, set the following values to YES.
    USE_LONG_MONTH_NAMES = NO;
    USE_LONG_DAY_NAMES = NO;
    UPPERCASE_USERNAME_FOR_INITBLOCK = NO ; // default is no
    // Aggregate Persistence defaults
    // The prefix must be between 1 and 8 characters long
    // and should not have any special characters ('_' is allowed).
    AGGREGATE_PREFIX = "SA_" ;
    # Security Section
    # Legal value for DEFAULT_PRIVILEGES are:
    # NONE READ
    [ SECURITY ]
    DEFAULT_PRIVILEGES = READ;
    PROJECT_INACCESSIBLE_COLUMN_AS_NULL     =     NO;
    MINIMUM_PASSWORD_LENGTH     =     0;
    #IGNORE_LDAP_PWD_EXPIRY_WARNING = NO; // default is no.
    #SSL=NO;
    #SSL_CERTIFICATE_FILE="servercert.pem";
    #SSL_PRIVATE_KEY_FILE="serverkey.pem";
    #SSL_PK_PASSPHRASE_FILE="serverpwd.txt";
    #SSL_PK_PASSPHRASE_PROGRAM="sitepwd.exe";
    #SSL_VERIFY_PEER=NO;
    #SSL_CA_CERTIFICATE_DIR="CACertDIR";
    #SSL_CA_CERTIFICATE_FILE="CACertFile";
    #SSL_TRUSTED_PEER_DNS="";
    #SSL_CERT_VERIFICATION_DEPTH=9;
    #SSL_CIPHER_LIST="";
    # There are 3 types of authentication. The default is NQS
    # You can select only one of them
    #----- 1 -----
    #AUTHENTICATION_TYPE = NQS; // optional and default
    #----- 2 -----
    #AUTHENTICATION_TYPE = DATABASE;
    # [ DATABASE ]
    # DATABASE = "some_data_base";
    #----- 3 -----
    #AUTHENTICATION_TYPE = BYPASS_NQS;
    # Server Section
    [ SERVER ]
    SERVER_NAME = Oracle_BI_Server ;
    READ_ONLY_MODE = NO;     // default is "NO". That is, repositories can be edited online.
    MAX_SESSION_LIMIT = 2000 ;
    MAX_REQUEST_PER_SESSION_LIMIT = 500 ;
    SERVER_THREAD_RANGE = 40-100;
    SERVER_THREAD_STACK_SIZE = 0; // default is 256 KB, 0 for default
    DB_GATEWAY_THREAD_RANGE = 40-200;
    DB_GATEWAY_THREAD_STACK_SIZE = 0; // default is 256 KB, 0 for default
    MAX_EXPANDED_SUBQUERY_PREDICATES = 8192; // default is 8192
    MAX_QUERY_PLAN_CACHE_ENTRIES = 1024; // default is 1024
    MAX_DRILLDOWN_INFO_CACHE_ENTRIES = 1024; // default is 1024
    MAX_DRILLDOWN_QUERY_CACHE_ENTRIES = 1024; // default is 1024
    INIT_BLOCK_CACHE_ENTRIES = 20; // default is 20
    CLIENT_MGMT_THREADS_MAX = 5; // default is 5
    # The port number specified with RPC_SERVICE_OR_PORT will NOT be considered if
    # a port number is specified in SERVER_HOSTNAME_OR_IP_ADDRESSES.
    RPC_SERVICE_OR_PORT = 9703; // default is 9703
    # If port is not specified with a host name or IP in the following option, the port
    # number specified at RPC_SERVICE_OR_PORT will be considered.
    # When port number is specified, it will override the one specified with
    # RPC_SERVICE_OR_PORT.
    SERVER_HOSTNAME_OR_IP_ADDRESSES = "ALLNICS"; # Example: "hostname" or "hostname":port
    # or "IP1","IP2":port or
    # "hostname":port,"IP":port2.
    # Note: When this option is active,
    # CLUSTER_PARTICIPANT should be set to NO.
    ENABLE_DB_HINTS = YES; // default is yes
    PREVENT_DIVIDE_BY_ZERO = YES;
    CLUSTER_PARTICIPANT = NO; # If this is set to "YES", comment out
    # SERVER_HOSTNAME_OR_IP_ADDRESSES. No specific NIC support
    # for the cluster participant yet.
    // Following required if CLUSTER_PARTICIPANT = YES
    #REPOSITORY_PUBLISHING_DIRECTORY = "<dirname>";
    #REQUIRE_PUBLISHING_DIRECTORY = YES; // Don't join cluster if directory not accessible
    DISCONNECTED = NO;
    AUTOMATIC_RESTART = YES;
    # Dynamic Library Section
    # The dynamic libraries specified in this section
    # are categorized by the CLI they support.
    [ DB_DYNAMIC_LIBRARY ]
    ODBC200 = nqsdbgatewayodbc;
    ODBC350 = nqsdbgatewayodbc35;
    OCI7 = nqsdbgatewayoci7;
    OCI8 = nqsdbgatewayoci8;
    OCI8i = nqsdbgatewayoci8i;
    OCI10g = nqsdbgatewayoci10g;
    DB2CLI = nqsdbgatewaydb2cli;
    DB2CLI35 = nqsdbgatewaydb2cli35;
    NQSXML = nqsdbgatewayxml;
    XMLA = nqsdbgatewayxmla;
    ESSBASE = nqsdbgatewayessbasecapi;
    # User Log Section
    # The user log NQQuery.log is kept in the server\log directory. It logs
    # activity about queries when enabled for a user. Entries can be
    # viewed using a text editor or the nQLogViewer executable.
    [ USER_LOG ]
    USER_LOG_FILE_SIZE = 10 MB; // default size
    CODE_PAGE = "UTF8"; // ANSI, UTF8, 1252, etc.
    # Usage Tracking Section
    # Collect usage statistics on each logical query submitted to the
    # server.
    [ USAGE_TRACKING ]
    ENABLE = YES;
    //==============================================================================
    // Parameters used for writing data to a flat file (i.e. DIRECT_INSERT = NO).
    STORAGE_DIRECTORY = "<full directory path>";
    CHECKPOINT_INTERVAL_MINUTES = 5;
    FILE_ROLLOVER_INTERVAL_MINUTES = 30;
    CODE_PAGE = "ANSI"; // ANSI, UTF8, 1252, etc.
    //==============================================================================
    DIRECT_INSERT = YES;
    //==============================================================================
    // Parameters used for inserting data into a table (i.e. DIRECT_INSERT = YES).
    PHYSICAL_TABLE_NAME = "OBI Usage Tracking"."Catalog"."dbo"."S_NQ_ACCT" ; // Or "<Database>"."<Schema>"."<Table>" ;
    CONNECTION_POOL = "OBI Usage Tracking"."Usage Tracking Writer Connection Pool>" ;
    BUFFER_SIZE = 10 MB ;
    BUFFER_TIME_LIMIT_SECONDS = 5 ;
    NUM_INSERT_THREADS = 5 ;
    MAX_INSERTS_PER_TRANSACTION = 1 ;
    //==============================================================================
    # Query Optimization Flags
    [ OPTIMIZATION_FLAGS ]
    STRONG_DATETIME_TYPE_CHECKING = ON ;
    # CubeViews Section
    [ CUBE_VIEWS ]
    DISTINCT_COUNT_SUPPORTED = NO ;
    STATISTICAL_FUNCTIONS_SUPPORTED = NO ;
    USE_SCHEMA_NAME = YES ;
    USE_SCHEMA_NAME_FROM_RPD = YES ;
    DEFAULT_SCHEMA_NAME = "ORACLE";
    CUBE_VIEWS_SCHEMA_NAME = "ORACLE";
    LOG_FAILURES = YES ;
    LOG_SUCCESS = NO ;
    LOG_FILE_NAME     =     "C:\OracleBI\server\Log\CubeViews.Log";
    # MDX Member Name Cache Section
    # Cache subsystem for mapping between unique name and caption of
    # members for all SAP/BW cubes in the repository.
    [ MDX_MEMBER_CACHE ]
    // The entry to indicate if the feature is enabled or not, by default it is NO since this only applies to SAP/BW cubes
    ENABLE = NO ;
    // The path to the location where cache will be persisted, only applied to a single location,
    // the number at the end indicates the capacity of the storage. When the feature is enabled,
    // administrator needs to replace the "<full directory path>" with a valid path,
    // e.g. DATA_STORAGE_PATH = "C:\OracleBI\server\Data\Temp\Cache" 500 MB ;
    DATA_STORAGE_PATH     =     "C:\OracleBIData\cache" 500 MB;
    // Maximum disk space allowed for each user;
    MAX_SIZE_PER_USER = 100 MB ;
    // Maximum number of members in a level will be able to be persisted to disk
    MAX_MEMBER_PER_LEVEL = 1000 ;
    // Maximum size for each individual cache entry size
    MAX_CACHE_SIZE = 100 MB ;
    # Oracle Dimension Export Section
    [ ORA_DIM_EXPORT ]
    USE_SCHEMA_NAME_FROM_RPD = YES ; # NO
    DEFAULT_SCHEMA_NAME = "ORACLE";
    ORA_DIM_SCHEMA_NAME = "ORACLE";
    LOGGING = ON ; # OFF, DEBUG
    LOG_FILE_NAME     =     "C:\OracleBI\server\Log\OraDimExp.Log";
    Help me out Gurus thanks in advance

    Hi,
    Star = OracleBIAnalyticsApps.rpd, DEFAULTthis should be end with semicolon
    Star = OracleBIAnalyticsApps.rpd, DEFAULT;
    Assign Points and close thread, if your question is answered...
    Cheers,
    Aravind

  • Lion server file sharing issue with windows API read/write ini file (GetPrivateProfileString)

    Hello,
    I try to config lion server as file server for a windows application we use at work. All other computers are windows 7 or XP, lion server is the only mac. I choose lion server because it's size, quality and personal love of apple products.
    10.7.2 lion server's samba file sharing works almost perfectly with all my windows machines, I can copy, delete, modify any text files or office files without any issue, but the most important windows application for my business doesn't work with samba file sharing. After some digging, I found it is because windows program can't read or write INI file stored on lion share. Windows API GetPrivateProfileString always returns empty if the INI file is store on lion share.
    You can download a small application for read/write windows INI file from codeproject.com to test this problem:
    http://www.codeproject.com/KB/files/ini.aspx
    I can open/edit the in file using any text editor without any problem. The only problem is with those windows APIs. ACL is turned on for my lion share and assigned "delete" rights to samba users.
    I install samba3 on the same server; it works perfectly with windows API. My windows program also works. Looks like there is something wrong with lion server's sambax.
    I'd prefer to use built-in samba even I have samba3 working. Built-in samba is very immature right now, but considered how young it is, I will give apple some time to make it mature.
    Does anyone have same issue or knows how to fix it?
    Thanks,
    Michael.

    All the memory is fine. The server rarely if ever goes down when there are only around 10-12 users connected. When there are 20+ users connected and working heavily it goes down often. When I say working heavily, I mean they are transferring huge files to the SAN (100GB+), sometimes 5 at a time per user, and there are a bunch of others who are reading large video files at a minimum of 220MB/sec from the SAN.
    Though this worked on Snow Leopard without any issues, Lion just doesn't seem to be able to handle it. The odd thing is, on Snow Leopard there was only a single 1GB ethernet connection to a NAS system, whereas with Lion we have a much more powerful machine with a 6-port 10GB ethernet card and a 4 lane 8GB fiber card to a true SAN. You would think that the newer scenario with Lion would handle far more users with ease.
    So far, very disappointing with regards to Lion's file serving performance.

  • Script to redirect a Application to secondary server if primary server is not available in a .ini file

    Hi Team,
    I want to write a script in the .ini file of an excel add-in on the users windows system , where if the primary server is not available it should automatically redirect to the secondary server. 
    Can someone help me in this?

    Hi Jrv, 
    As I said its an Add-in (Twuploader) in excel which uses a ini file to connect to a server. I want the addin to connect to another available server when the primary is not available. This is the ini file content below:
    [TradeWeb]
    Host=Server1
    Port=8002
    User=abcd
    [Upload]
    AutoMode=N
    UserInt=5
    [Toolbar]
    Visible=Y
    Row=26
    Pos=1
    Top=-32000
    Left=-32000
    Let me know how to edit this ini file so that if Server1 is unavailable it should connect server2. 

  • Modification to SAP Logon Cannot be written to INI file

    Hi,
    When i am trying to create a New Item in SAP logon it is giving an error "Modification to SAP logon could not be Written to INI file
    Check permission for file 'C:\Windows'.
    The problem is that, this is showing even when i m logged in as "XXXADM".
    I have Reinstalled the SAP GUI, but the problem is as it is.
    OS: WINDOWS 2003 server
    Database: Oracle.
    Please help me.
    Thanks in advance,
    Sharib

    I had this same problem under a VISTA Enterprise client setup.  I tried all the various recommendations, including setting the SAPLOGON_INI_FILE environment variable to point to c:\windows\saplogon.ini.  None of these changes worked, I even modified the file ownership to match up with my logged on user without success.
    I then looked at the shortcut for launching SAPLOGON, and tried to set the shortcut to run as an Administrator.  That option was greyed out.  I deleted the shortcut, and re-created it.  Still unable to save changes.  I then set the new SAPLOGON shortcut to execute as the administrator, and once I confirmed that I trusted the program, everything is now working as it should.
    Not content to leave it this way, I moved my saplogon.ini file OUT of the c:\windows directory and instead placed it in the directory pointed to by %USERPROFILE%\saplogon.ini .  I updated the environment variable setting and also removed the falg to execute the shortcut as the system administrator.
    Now everything is working as it should without any special hoops -- seems that even with full access, VISTA security would not let a domain user that was part of the PC's Administrators account to edit the file w/o running as the system administrator.
    Edited by: David L. Flad on Oct 30, 2009 4:02 AM

  • Modification to Write Configuration .ini file

    I have found one of the annoying things about Labview's configuration file VI's is that when the configuration file is written, all spacing between sections is eliminated making it hard to read, even if the spacing was there to begin with when the file was read.  For example, I would like the file to look like
    [Header1]
    key1=value1
    key2=value2
    [Header2]
    key3=value3
    key4=value4
    But it comes out looking like:
    [Header1]
    key1=value1
    key2=value2
    [Header2]
    key3=value3
    key4=value4
    making it harder to read.
    I made a modification to the file Config Data to String.vi which is located \vi.lib\UTILITY\config.llb\
    Make a backup copy of \vi.lib\UTILITY\config.llb\Config Data to String.vi and replace the file in the config.llb with the attachment (saved as LV 8.0).
    What I did was any time a section header is to be written to the file, I preceded it with another CRLF character so that it creates a blank line just before the section header.  To keep from having an extra blank line at the beginning of the .ini file, it does not create the CRLF there.
    I hope others will find this modification useful.
    Attachments:
    Config Data to String.vi ‏26 KB

    tst wrote:
    The idea itself is great, but I don't like the idea of changing vi.lib files (for several reasons).
    I didn't look at your code, but I assume that at least in this case, the resulting files will still be processed fine by machines which don't have this modification, so it's probably not as bad, but I still don't like it.
    You should probably go to the Product Suggestion Center and tell NI about this idea.
    I agree about not trying to change the vi.lib files.  It gets into modifying code that is rather deeply embedded about 3 or 4 sub-vi's down.  By my testing, machines without the modification do handle the files just fine.  The alternative would be to create a backup copy of the whole library and rename the files and use my own versions instead. I've recently installed the OpenG files and looked into them.  I like the functionality they provide to be able to store and retrieve clusters of configuration data.  Of course they have NI's write configuration files at the heart as well, so if they link to the original VI library then they will generate the same .ini files missing the extra lines that I like.
    tst wrote:
    You should probably go to the Product Suggestion Center and tell NI about this idea.
    Thanks, I already did this some time ago when I created a test VI to just read and close an .ini file.  I found that without setting the "write configuration file" flag in the close config file VI (which defaults to True), the whole file got rewritten even though nothing had changed.  That's how I stumbled across this loss of blank lines thing.
    I hope NI will look into that suggestion and add it to the config file VI library in the future.  It would probably need to be implemented with a flag that says "Add blank lines?" that would default to False so that the original behavior of the VI could be maintained.  Since the VI that controls the appearance of the file is a few layers deeper than Close config file VI, that flag would have to be passed through a couple of sub-VI's.
    Thanks for your feedback.
    Message Edited by Ravens Fan on 09-22-2007 03:22 PM

  • How to edit lasso files in Dreamweaver

    I have to edit some pages with minor changes in Dreamweaver, I'm not a programer, I'm a designer and I understand html files, I can code a little bit but I mostly work on design view.
    The pages that I need to edit have the extension of .lasso files and when I tried to open them in Dreamweaver I'm not getting anything in design view and very little code in code view.
    How can I edit these pages? is this just a programing language? if so, do I need a programer to edit them?
    Thanks

    Hi,
    there are several ways to open *.lasso files, respectively to change or add file extensions to Dreamweaver. Among other links look here:
    http://kb2.adobe.com/cps/164/tn_16410.html
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7ef 7a.html
    http://www.conticreative.com/The-Conticreative-Joomla-Blog/dreamweaver-ini-files.html
    http://docs9.lassosoft.com/Lasso%209%20Server/003%20Language%20Guide/004%20Web%20Applicati ons/003%20Lasso%20Apps/index.lasso
    ... look here so too: ../configuration/Extensions.txt.
    Hans-G.

  • .bat file and .ini file

    I have a batch file with the following contents, I need to substitute the paths \\folder\projectname\formatter\saxon8\ with a variable using .ini file. Could anyone please tell me how do I do this
    @echo off
    cls
    echo.
    set CP=\\folder\projectname\formatter\saxon8\saxon8-jdom.jar;\\folder\projectname\formatter\saxon8\saxon8-sql.jar;\\folder\projectname\formatter\saxon8\saxon8sa.jar;\\folder\projectname\formatter\saxon8\saxon-license.lic
    ...If the path of the needed files gets changed in future, the user need to change the path only in the .ini file and that should reflect in the .bat file.
    Message was edited by:
    Simmy
    Message was edited by:
    Simmy

    I am reading the INI file in my code whose value C:\\temp\\ is getting displayed in my Batch file, but I need to display only the keyword Path in my Batch file. Can you please tell me what modifications I need to do in my code.
    This is the contents of my INI file
    [INI file : user.ini]
    Path="C:\\temp\\"
    The following is my code
        public void createFile()
            try
                p = new Properties();
                p.load(new FileInputStream("D:/user.ini"));
                JarPath=p.getProperty("Path");
                p.list(System.out);
            catch(Exception e)
                System.out.println(e);
            File file1=new File("D:/temp/ps1.bat");
            BufferedWriter bw1;
            try
                bw1=new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file1)));
                bw1.write("@echo off\n");
                bw1.write("cls\n");
                bw1.write("echo.\n");
                bw1.write("set CP="+JarPath+"saxon8-jdom.jar;"+JarPath+"saxon8-sql.jar;"+JarPath+"saxon8sa.jar;"+JarPath+"saxon-license.lic\n");
                bw1.flush();
            catch(IOException ioe)
                System.out.println("Error creating \"ps1.bat\". Process terminated.");
    Currently, the following is my Batch file contents
    @echo off
    cls
    echo.
    set CP=C:\temp\saxon8-jdom.jar;C:\temp\saxon8-sql.jar;C:\temp\saxon8sa.jar;C:\temp\saxon-license.lic
    But I need my Batch file to display
    @echo off
    cls
    echo.
    set CP=Path\saxon8-jdom.jar;Path\saxon8-sql.jar;Path\saxon8sa.jar;Path\saxon-license.lic

Maybe you are looking for

  • Got new iPhone, tried to move iTunes library to different iMac, no luck?

    OK, so this is a complicated situation. My wife and I went out to get ourselves new iPhone 5s today. When we got home, we discovered that our laptops, which we had been using as our backups on iTunes, was considered out of date. We already traded in

  • Storage bin available when posting change is not confirmed completely

    Dear Gurus, I have a question for you: My costumer wants to do a posting change when the material is released from QM with a decision usage from Q to unrestricted use. The process is done in two steps: with LU04 the TO is generated and with LT12 is c

  • Dock hangs when left clicking on an icon

    Hi everyone! I've got an strange and intermittent problem with the leopard dock. Sometimes, when I left click on the dock, it stops working: it shows the left click menu of the application I've click but the dock stops updating the new applications I

  • Invisible shield for 5G 30gb ipod in london or surrey?

    Does anyone know a local store where I can buy this invisible shield? I'm currently in Surrey England and will be in another country by next week so I cannot order this item online. I'm giving this ipod as a present and I want it to be protected befo

  • Multiple Endeca images with multiple static IP's

    Hello, I have the following problem: I have created an Oracle Linux 64BIT image with Endeca V3.1. I set the network connection to NAT and entered that IP in my Host file with my hostname. Everything was working fine, because I used a static IP > Conf