Inifile several elements with the same name

Hello

I have a file of similar to an ini file setting. I can read with the toolslib inifile.

A [SPLINE] section has a lot of variable, number, lines all begin with DATA =. The line of these data is read as a string. The content is 3 values as input for a spline interpolation.

Inifile labwindows Analyzer can read that and he can write it. The number of elements in the section [SPLINE] equals the number of rows of DATA. When he writes, he recreates [SPLINE] section with several items that all as DATA begin =.

Now I want to read later, each of these DATA items, retrieve the values of three and put them in some tables.

The ini_get('sendmail_from') functions have as input a sectionname and an itemname. So when I use Ini_GetPointerToString, I always get the first occurrence of this itemname or always the first line.

How can I get the second and third... String?

Kind regards, Jos

I'm using Labwindows CVI 8.0 for Windows

I use the inifile toolslib\toolbox Analyzer

Ini_WriteToFile data looks like:

[ENGINE]
MOTORNUMBER = 4
REQUEST = 0 - 25.0 28.0 0.000 1.0 0.0 0.0
WAVELENGTH = 41 45,000 0.000 0.000 1.0 0.01 1.0
BANDWIDTH = 42 - 20, 000-25,000 - 24.960 1.0 1.0 0.01
NAMES = 43 - 6.0 95.0 0.000 1.0 2.0 0.3

[SPLINE]
DATA = 240,3, 0.006,-42,0; Zemax * /.
DATA = 253,7, 5.034,-42.85; High performance Hg100 spectraal lamp * /.
DATA = 280.4, 12.396,-44.7. High performance Hg100 spectraal lamp * /.
DATA = 296,8, 15.761,-45.1. High performance Hg100 spectraal lamp * /.
DATA = 334.2, 21.389,-47.2; High performance Hg100 spectraal lamp * /.
DATA = 404.7, 27.680,-50.4; High performance Hg100 spectraal lamp * /.

Hello

Thanks to you two.

Because the ini library has been able to export the complete set of data, including multiple DATA key, I had little hope that there is an easy way to use this library. Your comments, it is not useful to look for a work around.

In the meantime, I found an another iniparser (http://ndevilla.free.fr/iniparser/). It doesn't "support" no double keys, but I can probably it adapt for my application. If not, I'll take a few excerpts from the library labwindows and this second example and have to build my own.

Kind regards, Jos

Tags: NI Software

Similar Questions

  • Several files with the same name.

    Cannot publish to Business Catalyst because of a fatal error, where it is said "why do we have several files with the same name?  The website and all its contents have not changed in more than a year with the exception of minor changes to the wording so unable to understand what the error is encountered. Are there not better misdiagnosed at one point less for the files in question.

    The problem is the result of a mixture of case-sensitive and case-insensitive between how files within the .oam are put into interaction with and what is written in the muse_manifest.xml file during a re - download full compared to an incremental download.

    If all .oam packages files are tiny and the original .oam were replaced in Muse with the all new tiny .oams, then you should select Upload: publish all the files in the dialog box Options. From there, forward publication of incremental changes should work without errors.

  • Return of the mistake of MUSE: why do we not have several files with the same name?

    Well - I thought I had all this worked and fixed, but I met the download error 'Why do we have several files with the same name' once again.  (I downloaded all the files several times today in order to 1) works the way it worked the last time and 2) get an OAM file that is not loading for some reason any load again and the download takes about an hour to transfer all the files manually.

    To recap:

    (1) an option "Upload only modified files" returns the 'Muse has encountered an error and closes.  Why do we have several files with the same name? "error just as before.

    (2) a full download will work but takes forever and is NOT a substitution for work changed files option.

    Please advise with possible solutions!

    -Dave

    Is it possible to have two .oam different files in different folders on your computer where the .oam files have the same name? I'm theorizing that there may be a bug in the treatment to ensure the folder created for a .oam placed on the server receives a unique name, particularly in the case of a partial update of the site on the server.

    Please send us the .muse file and all the files in .oam related to [email protected] along with a link to this topic for the context so we can attempt to reproduce this error and isolate the root cause. If files are larger than 20 MB, you'll need to use a service such as Adobe send & Track, Dropbox, creative cloud, WeTransfer, etc. file sharing. Thank you.

  • XOQ-01950: Cube contains several BuildSpecifications with the same name.

    Hi all

    When executing the option to maintain Cube he throws under question: any clue?

    XOQ-01950: the AWCubeOrganization for cube 'NN_OLAP_POC. MARKET_SALES_CUBE"contains several BuildSpecifications with the same name.

    Thank you
    Exq

    This error should show only upward when you create a cube (by importing XML), not when you maintain. So, I'll assume that's what you hear.

    If you are importing XML that references an OLAP object that already exists, whereas the new definition replaces the old. The only exception to this rule is the BuildSpecification object. This kind of object is called, but it does not follow these conventions (for reasons of disorder of implementation). If you import the XML code that has a BuildSpecificaiton with the same name as one that already exists, then you will trigger the error you see. Here is a relevant example of XML.

    
     
    
    

    The solution is to remove this section from the XML before importing it.

  • Download error - why don't we have several files with the same name?

    Since the upgrade to 2015.1 a couple of days, I can't update my site using the feature "only changed files.  If I do I get this error, followed by the Muse stops completely.

    2016-02-12_16-23-38.png

    If I change the upload to 'all files and folders' everything is wonderful, even if it takes an hour to update the entire site rather than the usual 10 minutes.  Given that it will only grow of it is I hope it is on the radar of the Adobe + 400 current pages team.  What should I do?

    Well, I got the error to stop on my own.  I downloaded several times with a full scale 'all files' downloading and finally opened the site on my iMac to perform the update it.  Same configuration, the same file, even software - after uploading each file one last time on the other machine I can now do a upload "only changed files" to be.

    What the hell was that?

  • Select all the elements with the same name of XMLTYPE

    Hello

    I have the following xml code stored in the XMLTYPE column:

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Created with Jaspersoft Studio version 6.2.0.final using JasperReports Library version 6.2.0  -->
    <!-- 2016-01-02T23:09:52 -->
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank_A4" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="8f749217-51eb-4c79-9b11-5a3e11b5b1b4">
        <property name="com.jaspersoft.studio.data.sql.tables" value=""/>
        <property name="com.jaspersoft.studio.data.defaultdataadapter" value="MyXE_ssh"/>
        <queryString>
            <![CDATA[select * from dept where deptno=10]]>
        </queryString>
        <field name="DEPTNO" class="java.math.BigDecimal"/>
        <field name="DNAME" class="java.lang.String"/>
        <background>
            <band splitType="Stretch"/>
        </background>
        <title>
            <band height="221" splitType="Stretch">
                <staticText>
                    <reportElement x="7" y="2" width="100" height="30" uuid="2bc03b83-e484-46e5-8681-48a9b01ac437"/>
                    <text><![CDATA[DEPTNO]]></text>
                </staticText>
                <staticText>
                    <reportElement x="160" y="2" width="100" height="30" uuid="3dfc25f3-6ff1-4186-8ee6-c71759a749a7"/>
                    <text><![CDATA[DNAME]]></text>
                </staticText>
                <subreport>
                    <reportElement x="10" y="60" width="544" height="20" uuid="e947974e-27bc-4b90-b0ee-f709b969c91b"/>
                    <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                    <subreportExpression><![CDATA["subreport.jasper"]]></subreportExpression>
                </subreport>
            </band>
        </title>
        <pageHeader>
            <band height="73" splitType="Stretch"/>
        </pageHeader>
        <columnHeader>
            <band height="36" splitType="Stretch"/>
        </columnHeader>
        <detail>
            <band height="35" splitType="Stretch"/>
        </detail>
        <columnFooter>
            <band height="45" splitType="Stretch"/>
        </columnFooter>
        <pageFooter>
            <band height="54" splitType="Stretch"/>
        </pageFooter>
        <summary>
            <band height="44" splitType="Stretch">
                <subreport>
                    <reportElement x="130" y="10" width="200" height="34" uuid="892a1adf-f7e7-4804-8f7f-a5227516afb5"/>
                    <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                    <subreportExpression><![CDATA["rep1/subrep2.jasper"]]></subreportExpression>
                </subreport>
            </band>
        </summary>
    </jasperReport>
    

    Please, is it possible to select all < subreport > items, so the result of a query would be something like:

    <subreport>
                    <reportElement x="10" y="60" width="544" height="20" uuid="e947974e-27bc-4b90-b0ee-f709b969c91b"/>
                    <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                    <subreportExpression><![CDATA["subreport.jasper"]]></subreportExpression>
     </subreport>
     <subreport>
                    <reportElement x="130" y="10" width="200" height="34" uuid="892a1adf-f7e7-4804-8f7f-a5227516afb5"/>
                    <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                    <subreportExpression><![CDATA["rep1/subrep2.jasper"]]></subreportExpression>
    </subreport>
    

    The problem is this subreport sections can be nested more or less anywhere, so I do not know the path. Any suggestions would be much appreciated.

    Thank you

    Pavel

    The XPath ' / /' means selects nodes in the document from the current node that match the selection, regardless of where they are.  If the XPath ' / / the subreport ' will extract all nodes called subreport wherever they are in the document or not.  So something like...

    data (donnees_xml))

    Select xmltype)

    '

    "http://JasperReports.sourceforge.net/JasperReports" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" "xsi: schemaLocation ="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"name ="Blank_A4"pageWidth ="595"pageHeight = columnWidth"842"="555"leftMargin ="20"rightMargin ="20"topMargin ="20"bottomMargin ="20"uuid ="8f749217-51eb-4c79-9b11-5a3e11b5b1b4">

    <p class="reply"> <p class="reply"><band height="221" splittype="Stretch"><p class="reply"> <p class="reply"><staticText><p class="reply"> <p class="reply"><reportElement x="7" y="2" width="100" height="30" uuid="2bc03b83-e484-46e5-8681-48a9b01ac437"></reportElement></p> <p class="reply"><text><![CDATA[DEPTNO]]></text></p> <p class="reply"></staticText></p> <p class="reply"><staticText><p class="reply"> <p class="reply"><reportElement x="160" y="2" width="100" height="30" uuid="3dfc25f3-6ff1-4186-8ee6-c71759a749a7"></reportElement></p> <p class="reply"><text><![CDATA[DNAME]]></text></p> <p class="reply"></staticText></p> <p class="reply"><subreport><p class="reply"> <p class="reply"><reportElement x="10" y="60" width="544" height="20" uuid="e947974e-27bc-4b90-b0ee-f709b969c91b"></reportElement></p> <p class="reply"><connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression></p> <p class="reply"><subreportExpression><![CDATA["subreport.jasper"]]></subreportExpression></p> <p class="reply"></subreport></p> <p class="reply"></band></p> <p class="reply">

    the double)

    Select *.

    from xmltable (XMLNamespaces (DEFAULT 'http://jasperreports.sourceforge.net/jasperreports'),

    ' / / the subreport '

    passage (select donnees_xml data)

    columns

    xmltype subreport path '.')

    SUBREPORT

    http://JasperReports.sourceforge.NET/JasperReports">

    http://JasperReports.sourceforge.NET/JasperReports">

    2 selected lines.

  • Problem in creating several attributes XML with the same name of the attribute

    I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:



      
         
         
         
      

    I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)

    Then I call AddAttribute with add, key & Key0, then with add, value & 0.  This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces ""and I find myself with"" only.

    I do something wrong or CVI is not able to create an XML of this type?

    Thank you

    Here's how you do it. I show not to keep things simple error checking.

    #include

    public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
    {
    Add the CVIXMLElement;
    CVIXMLNewElement (parent, -1, 'Add', &add);)
    CVIXMLAddAttribute (add, "touch", key);
    CVIXMLAddAttribute (add, "value", value);
    CVIXMLDiscardElement (add);
    }

    void main (void)
    {
    CVIXMLElement root, and appSetting;
    Doc CVIXMLDocument.
     
    CVIXMLNewDocument ("configuration", &doc);)
    CVIXMLGetRootElement(doc, &root);)
    CVIXMLNewElement (root,-1, "appSetting", and appSetting);
    CreateAddElement (appSetting, "Key0", "0");
    CreateAddElement (appSetting, "Key1", "1");
    CreateAddElement (appSetting, "Key2", "2");
    CVIXMLDiscardElement (appSetting);
    CVIXMLDiscardElement (root);
    CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
    CVIXMLDiscardDocument (doc);
    }

  • several devices on the network with the same name

    I want to install Windows 7 OS computers on a domain with Small Business SERVER 2003.  Curiously, I see all the computers on the network, where I should be able to, but one of them WK02011, is not accessible from all Windows 7 systems because there are multiple devices with the same name on the network according to a diagnosticn check.  WK02011 is visible and accessible from other systems on the network that are runjning XP OS.  There is only one device named WK02011 on the network.  I don't have this problem with any other XP system - that is - I can see and access all of the other XP machines on the network with the exception of WK02011.  I can't access WK2011 from the server and the server indicates that it is multiple devices with the same ID.  Rename the XP would be complicated because of having to re - set up the service to the customer and then turn around and install 7 OS in the workstation in the coming days.

    How to find the ghost device double?

    Hello

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for Windows 7 on TechNet. Please post your question in the Technet forums. You can follow the link to your question:

  • Download app with the same name in appworld for several handsets

    Hello

    I have developed an application and I gt the appworld account. I want to download my app from appworld now. My app supports Blackberry "BOLD", storm and torch curve. But I don't want to make only one application, coz that will increase its size. I want to make it as 4 separate application and download the appworld. But I want to download apps with the same name and features. I want that if a person search for the application in appworld having diff phones, the same name should be displayed, and not just for the bb bold AppName_bold, curves en AppName_curve. It is therefore possible to uplaod app with the same name but different models, while wen someone download the app, appropriate model will be get downloaded in its ph

    You are welcome. On App World, you just download the parent. COD. No need to unpack the parent in the siblings. COD or download files the. JAD.

    Scott

  • First New - VM: an element with the same key has already been added.


    I get a strange error that I have seen a few other posts, but with no resolution (or at least one that I can find).  When you try to create a new virtual machine using the cmdlet New - VM, I get the error "an item with the same key has already been added."

    Now, here's the key that I've not seen many others to mention.  This ONLY happens on the first attempt for each new connection with Connect-VIServer.  I can create as many of the same machines that I want after that first mistake with the same settings (new name of course).  If I disconnect and reconnect again, the error appears for the first time.

    Normally with PowerShell, I have just to catch the error and be on my way.  However, in this case I use the parameter - RunAsync, so that I can capture the task that is returned in a variable.  From there, I use Wait-task until the virtual machine is complete before moving on with the script.  Everything works fine when the error occurs, but when it happens that the object of the task is not returned and the rest of her vomit script errors.

    I am running the latest version of PowerCLI and I tried this on PowerShell v2.0 and v3.0 and get the same results.  I tried different models and guests without success.  I also tried this with and without assistance - AllLinked on Connect-VIServer-bound mode.  I should mention that I am cloning model, by specifying a spec customization and host cluster data store.  Again, the only common denominator repeatable here is that this ONLY happens on the first attempt to use New - VM session to vCenter.

    Any ideas or suggestions?

    If this is useful at all, here are the details of the output on the exception:

    PS C:\ > $Error [0]
    New - VM: 05/06/2013-09:49:22 new-VM an element with the same key has already been added.
    On line: 1 char: 11
    + $VMTask = new-VM-name "NEWTEST20" - model 'Template' - OS...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo: NotSpecified: (:)) [new-VM], VimException)
    + FullyQualifiedErrorId: Core_BaseCmdlet_UnknownError, VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM

    PS C:\ > $Error [0]. Exception | Select *.


    ErrorId: Core_BaseCmdlet_UnknownError
    ErrorCategory: NotSpecified
    TargetObject:
    RecommendedAction:
    SessionId:
    Login ID: /VIServer=USERNAME@SERVER:443/
    Severity: error
    Message: 05/06/2013-09:49:22 new-VM an element with the same key has already been added.
    Data: {ParameterValues}
    InnerException: System.ArgumentException: an item with the same key has already been added.
    to System.Collections.Generic.Dictionary'2.Insert (TKey key, TValue value, Boolean add)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.PopulateTaskDescriptionDict
    ionary()
    at VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.GetTaskDescription (String
    taskDescriptionId)
    at VMware.VimAutomation.ViCore.Impl.V1.Task.TaskImpl.Create (ManagedObjectReference moRef,
    Customer VimClient, accessories 2 dictionary, extensionData object)
    to VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl. < GetTaskListForCli
    ENT > d__7.MoveNext)
    System.Collections.Generic.List to ' 1.InsertRange (Int32 index, 1 IEnumerable collection)
    at VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl.GetTaskList (IEnume
    uidList Maple 1, IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.Sdk.Impl.V1.Task.CoreTaskServiceImpl.GetTaskList (IEnumerable 1 uidList,
    IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskCore (Nullable State 1,)
    IList 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTask (Nullable State 1,)
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskById (String uid,
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    VMware.VimAutomation.ViCore.Impl.V1.Service.VmServiceImpl.NewVM (model TemplateInterop,
    VMHostInterop vmHost, string name, resourceContainer, FolderInterop location VIContainerInterop,.
    StorageResourceInterop data store, Nullable 1 diskStorageFormat, OSCustomizationSpecInterop
    customization, Boolean, Boolean, string 1 Nullable description isRequestedAsync allowNested
    Nullable, 1 haIsolationResponse, Nullable 1 drsAutomationLevel, haRestartPriority, [AdvancedOption]
    options)
    to VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM.DoWork (customer VIAutomation, moList list 1)
    at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseCmdlet.DoWork (VIConnection connection,
    MoList list 1)
    at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdlet.DoWorkEx (VIConnection connection,
    MoList list 1)
    to
    VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ConnectionDispatchHelper.ExecuteRunlist (dictionary 2
    runlist, DoWorkDelegate doWorkDelegate, UidDispatchHelper uidDispatchHelper, result of list 1)
    TargetSite:
    StackTrace:
    HelpLink:
    Source:

    PS C:\ > $Error [0]. Exception.InnerException | Select *.


    Message: An element with the same key has already been added.
    ParamName:
    Data: {ConnectionId}
    InnerException:
    TargetSite: Void Insert (TKey, TValue, Boolean)
    StackTrace: At System.Collections.Generic.Dictionary'2.Insert (TKey key, TValue value, Boolean add)
    to
    VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.PopulateTaskDescriptionDictionary)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.GetTaskDescription (String
    taskDescriptionId)
    at VMware.VimAutomation.ViCore.Impl.V1.Task.TaskImpl.Create (ManagedObjectReference moRef,
    Customer VimClient, accessories 2 dictionary, extensionData object)
    to VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl. < GetTaskListForClient
    > d__7.MoveNext)
    System.Collections.Generic.List to ' 1.InsertRange (Int32 index, 1 IEnumerable collection)
    to
    VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl.GetTaskList (IEnumerable 1)
    uidList, IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.Sdk.Impl.V1.Task.CoreTaskServiceImpl.GetTaskList (IEnumerable 1 uidList,
    IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskCore (Nullable State 1,)
    IList 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTask (Nullable State 1,)
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskById (String uid,
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    VMware.VimAutomation.ViCore.Impl.V1.Service.VmServiceImpl.NewVM (model TemplateInterop,
    VMHostInterop vmHost, string name, resourceContainer, FolderInterop location VIContainerInterop,.
    StorageResourceInterop data store, Nullable 1 diskStorageFormat, OSCustomizationSpecInterop
    customization, Boolean, Boolean, string 1 Nullable description isRequestedAsync allowNested
    Nullable, 1 haIsolationResponse, Nullable 1 drsAutomationLevel, haRestartPriority, [AdvancedOption]
    options)
    to VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM.DoWork (customer VIAutomation, moList list 1)
    at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseCmdlet.DoWork (VIConnection connection,
    MoList list 1)
    at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdlet.DoWorkEx (VIConnection connection,
    MoList list 1)
    to
    VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ConnectionDispatchHelper.ExecuteRunlist (dictionary 2
    runlist, DoWorkDelegate doWorkDelegate, UidDispatchHelper uidDispatchHelper, result of list 1)
    HelpLink:
    Source: mscorlib


    I was informed that this is actually a "known" bug and a fix has already been planned for the release of the future code.  After getting the access to a beta version, it does not seem to be fixed in the next release.

  • [.ini files] Get the value of multiple labels with the same name

    Hello!

    In an ini.files, I need to get the value of each tag named in a certain way in a section, but unfortunately, I have 3 or 4 tags with the same name in several sections. I don't know how to retrieve these values, the program always consider that the first tag and not others, I tried to remove each tag after obtaining its values, that he did not.

    Does anyone have an idea to solve the problem?

    Thank you!

    As you can read in my last post, you must read and throw 'x' lines:

    OpenFile)

    Skip lines

    for (i = 0; i< x;="" i++)="" readline="">

    Start reading the useful lines

    ReadLine () / / read a line

    ... / / Interpret the line

    Don't forget to add a control during i/o operations of robust error and to check the end of the file.

  • DISABLE "there is already a file with the same name to this place.

    Window 7. 64 bit. How do you turn OFF DISABLE, CANCEL, DELETE, STOP the pop-up 'MOVE the FILE'?

    As a user since the days of DOS command lines and having had a routine all the way through to XP, this new window is one of the most annoying pop ups for an experienced user. If it isn't a swith toggle check box or an other power selection for this message, there must be. And if there is, you did it quite hard to find.

    The dialog box that appears in Windows 7 that starts with "there is already a file with the same name to this place. It lists then the three choices - "Copy and replace", "Do not copy" and "copy, but keep both files.

    I managed several libraries of forms which oblige me to replace the files throughout my day. I make a copy of the file I replace first of all, for archival purposes and this pop-up box is, well, it's boring. There must be a way to disable.

    This box comes up to move files and to copy the files.

    Any help in these turn off would be appreciated.

    See you soon.

  • Add-PSSnapin: an element with the same key has already been added

    When you run Add-PSSnapin, I get the above error. This seems to happen if I try to add the snap a second time, but when this happens, none of the power CLI commands are then available up to what the server is restarted.

    Add-PSSnapin: an element with the same key has already been added.

    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

    + Add-PSSnapin $SnapinName;

    +     ~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [Add-PSSnapin], ArgumentExcept)

    ion

    + FullyQualifiedErrorId: System.ArgumentException, Microsoft.PowerShell.Co

    mmands. AddPSSnapinCommand

    Failure of the attempts to remove the snap-in at this point with:

    Remove-PSSnapin: no Windows PowerShell snap-ins for the model

    "VmWare.VimAutomation.Core" were found. Check the pattern and then try the

    command again.

    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

    + Remove-PSSnapin $SnapinName;

    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: InvalidArgument: (VmWare.VimAutomation.Core:Stri

    NG) [Remove-PSSnapin], PSArgumentException

    + FullyQualifiedErrorId: NoPSSnapInsFound, Microsoft.PowerShell.Commands.R

    emovePSSnapinCommand

    I already tried to uninstall the dll and put it back, that makes no difference

    $dllpath = "C:\Program Files (x 86) \Vmware\Infrastructure\vSphere PowerCLI\VMWare.VimAutomation.VICore.Cmdlets.dll.

    $SnapinName = "VmWare.VimAutomation.Core".

    #get the path to instalutil

    $path = [System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory();

    #create an alise for installtuil

    set-alias installutil (resolve-path (join-path $path 'installutil.exe'));

    #uninstall snap

    InstallUtil /u $dllpath;

    InstallUtil $dllpath;

    I tried appdomain unloading, then adding the snap-in with the same result:

    $appdomain = [AppDomain]: CurrentDomain

    $appdomain. # Of unloading | Out-Null

    Add-PSSnapin "VMware.VimAutomation.Core".

    $appdomain. Load

    Everything simply jump beyond the error is not good because it is impossible to find the following commands:

    Add-PSSnapin "VMware.VimAutomation.Core" - ErrorAction SilentlyContinue

    Get - VM $VirtualMachine

    The term 'Get - VM' is not recognized as the name of a cmdlet, function, script file, or an executable program. Check the spelling of the name, or if a path has been included, make sure the path is correct, and then try again.

    Any help to fix this would be greatly appreciated.

    Thank you

    OK, I was kind of what went wrong here.

    The snap has been loaded from a powershell module. When the module is removed and added again, the snap ceases to function, but also can not be added again.

    If the snap is loaded first outside the module everything works fine until you try never to remove or add snap-in module.

  • PowerCLI - an element with the same key has already been added ERROR

    Hello

    I opened a case with VMware on a problem using PowerCLI. And pretty well, they said that they do not support scripts... But the error is not related to any script. It is related to the first command I run against one of our Vcenter and we have 6 of them.

    Everything worked well until we went from 4.1 to 5.1

    I can connect to our VCenter fine, but the first command always give an error and fail to the powercli but the task still occur in vCenter.

    When it gets ugly, is we have several powershell script to maintain and automate our environment but now these script fail.

    Example, we have a script to deploy the VM model and then configure the appropriate hardware configuration and add Notes and custom attributes. But the script fails after that deployment so the rest will not run. It will be possible that deploy us to the first virtual machine.

    So for 'Band-aid' question, I added a line to my script to start a virtual dummy machine, to make sure that what is in the script will work fine.

    Error:

    PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI > start-vm vm - Server-m46

    Start-VM: 2013/06/26 11:57:05 Start-VM an element with the same key has already been added.

    Online: 1 character: 9 + start-vm < < < <-vm server-m46 + CategoryInfo: NotSpecified: (:)) [start-VM], ViError + FullyQualifiedErrorId: Client20_VMServiceImpl_StartVM_ViError, VMware.VimAutomation.ViCore.Cmdlets.Commands.StartVM)

    As far as I know, done to the PowerCLI VMware supports.

    I don't think they support the client script debugging, but the product PowerCLI itself is supported.

    I created a few calls myself in the past.

    What you see is a known problem, there are a few discussions in this community who has something similar.

  • How to register multiple files with the same name with different num revision

    Hello

    Can someone please tell me, how to register several different files with the same name with the revision number using the RIDC API.

    For example:
    First of all I will be saved in a file (TestFile.txt) in a content server with revision number 1 using the RIDC API in application of the ADF. Then after awhile, will change the same line (TestFile.txt) check-in and once again. I tried to check the same file several times, however first Check-in correctly in server showing revision 1, so that Check-in same file again, her gives no error message, and also its not reflecting only not to the server. Single file (TestFile.txt) reflecting on the server.

    How to implement this feature using the RIDC API? Any suggestions would be helpful.

    Concerning
    REDA

    Published by: 887680 on March 6, 2013 10:48

    (1) get the content ID (dDocName), call CHECKOUT_BY_NAME
    (2) call check-in service with dRevLabel = previous dRevlabel + 1

Maybe you are looking for