Checking for the existence of a file.

I have a GUI to enter test info. A file is created based on the entered test number. I want to check for the existence of a file, and then notify the operator while not allowing the program to save it.

This vi checks the presence of the input file.
If file is not found, it will be created.
regards
ian.f
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
File_check_existance_openorcreate_2003.vi ‏72 KB

Similar Messages

  • How can I check for the existence of an XML file in Illustrator Javascript??

    I'm writing a Javascript to run at startup. I want to check for the existence of XML files and process them, if they are available. How can I check for their existence?

    Your first line just sets a variable to a string value… getFiles() is a method of Folder… so
    var InputXMLDir = Folder( "D:/Brackets/Create_Bracket_Graphics/Input/XML-n-Templates/" );
    Not a PC user so I can't remember if the colon is OK…? As you appear to know the file name why bother with a folder get files anyhow you could just check if the file exists then do some thing…
    alert( File( "D:/Brackets/Create_Bracket_Graphics/Input/XML-n-Templates/brackets_men_web.xml" ).exists );

  • Checking for the existence of a Frame

    Hello,
    I am currently designing an application which consists of 8 JFrames (all in different classes), During the application, one JFrame provides information to a user and when they select the appropriate fields another JFrame opens an the active one closes. However the problem i am having is that i need to be able to write an if statement saying
    if (this particular frame exists already){
    destroy it;
    }else{
    whatever........};
    But i dont know how to check for the existence of a frame currently running, or how to destroy it..
    im currently using dispose(); to destroy frames but the dispose method only works when your in the class thats creating the frame, it wont let me write something like class1.dispose() (where class1 is the frame object created in the constructor of class1.java); in class2.
    I have searched throught the forum and havent found anything that can help me, i would really appreciate anyones input.
    Thanks in advance,
    Dev

    Hey its ok i've decided to restructure the program, but if anyone does know how to do this please still reply to the message, as i would still like to know

  • I am on a MAC Application. It has  been rejected by following reason.  This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed. We recommend implementing receipt validation to reso

    I am on a MAC Application.
    It has  been rejected by following reason.
    This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed.
    We recommend implementing receipt validation to resolve this issue.
    At a minimum, the app will need to check for the existence of an App Store receipt and exit at launch with a status of 173 if it does not exist.
    Any help ?
    Thanks in Advance.

    I am on a MAC Application.
    It has  been rejected by following reason.
    This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed.
    We recommend implementing receipt validation to resolve this issue.
    At a minimum, the app will need to check for the existence of an App Store receipt and exit at launch with a status of 173 if it does not exist.
    Any help ?
    Thanks in Advance.

  • Checking for the Existence of Sold to Party in EDI 850

    Hi All,
    I have created the mapping document for EDI 850. In our scenario when an EDI 850 comes in, we need to check whether the Sold-to Party exists. IF it exists then the EDI 850 will be processed and a sales order will be created. If the Sold-to Party does not exist then a Sold to party has to be craeted with the information present in 850 IDOC.
    I have a question as should the mapping document for EDI also contain the Sold to Party creation mapping details
    Thanks and Regards,

    Why dont you do like this:
    private boolean FileExists(String LogFile) {
    java.io.File file = new File(LogFile);
    if (file.exist()) {
    return true;
    } else {
    return false;
    }

  • I want to check for the existence / validity?

    Hello
    // Identify required fields and make yellow colored them
        var myArrayYellow = new Array();
        var yellowFields;    
        yellowFields = my_required_fields_list_string.rawValue
        myArrayYellow = yellowFields.split(" ");
        for (var i = 0; i < myArrayYellow.length; i++)   
        **===> Here at this point, i want to check the existence of [i] field in the form that whether the field / object / [i] is valid or not on the form? bcz, i have chances of getting non-existing fields in the my_required_fields_list_string, hence prior to assigning yellow color to them, i want to check their validity on the form or not?**
        **Pls. let me know the JS for this**
       // if its true/found, then only assign yellow color as below
         xfa.resolveNode("MY_ADOBE_FORM.." + myArrayYellow[i]).ui.oneOfChild.border.fill.color.value = "255,255,254"     
    Thank you

    Any help pls?
    Thank you

  • Checking for the existence of a business partner using bu_partner

    Hi,
    How can i check if the business partner already exists in but000 based on bu_partner?
    please help.
    Regards
    Shilpi

    Hoping that BU_PARTNER means you have got a business partner id.
    function module: BUPA_NUMBERS_GET
    If you get a result (a partner guid for example) the BP exists on the db.
    cheers Carsten

  • Collection Method to check for the existence of a particular value

    I have to use an associative array to store a list of values. How can i check whether a particular value exists or not in the entire collection?
    The list would look like
    John
    Abel
    Keith
    Johhan
    .i just want to know whether a particular value (say John) exists or not in the entire collection.I can't use the method EXISTS because it will only returns TRUE if the nth element in an Associative array exists.
    If this is not possible with Associative arrays, what other collection types(and method) can i use for this?

    associative arrays should do the trick.
    index by varchar2() rather than binary_integer or pls_integer:
    good example here:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/collections.htm#sthref1022
    edit: I guess I should qualify this by saying that it only works like that if you've got unique values in your index, which may not be an acceptable solution for you. if you have to index by a number, then I'd also be curious if there's a solution other than looping through the whole table find a value. the only fast way I know of would be to ensure the array is ordered and perform a binary search algorithm or something.

  • Checking the existence of a file b4 creating a file by the same name

    Hi All,
    I hav a scenario where I hav to check for the existence of a file by the same name (<b>XXXFile</b> say). If i don't hav any file by the name <b>XXXFile</b>, then i hav to create a file by the name <b>XXXFile</b> at that location. If it already exists, then i hav to wait till it gets deleted (takes hardly 1 min to get deleted).
    Can any one tell me :
    How to do this without using operating system command?
    And using operating system command?
    Any help wud be appreciated.
    Thnx in Adv
    Anil

    Hi Anil,
    You will i guess have a standard format in which you are going to write the file with a counter or something.
    Whenever you are going to write a file, you can:
    1. Check if there is a file already sent by this name?
    2. If no, then you can send the file at the same time update the name.
    You can do this by creating a ztable in SAP and accessing it through JCO/RFC. You can do this in your module or in the mapping.
    eg. /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    Regards
    Vijaya
    Message was edited by: vijaya kumari

  • XPath query to test for the existence of a tag

    I have the following piece of XML and I need to write a query against it that will check for the existence of the <content> tag in XML body... In other words, I want to get the row if the <content> tag is absent from the Asset portion of the metadata but only for Asset_Class = "encrypted"
    ADI>

    <Metadata>
    <AMS Asset_Class="package" Asset_ID="TTVV4136100000000001" Asset_Name="Package_4136" Creation_Date="2004-07-12" Description="Test package C1" Product="MOD" Provider="N2BB" Provider_ID="n2bb.com" Verb="" Version_Major="1" Version_Minor="0"/>
    <App_Data App="MOD" Name="Provider_Content_Tier" Value="HBO1"/>
    <App_Data App="MOD" Name="Metadata_Spec_Version" Value="CableLabsVOD1.1"/>
    </Metadata>

    <Asset>

    <Metadata>
    <AMS Asset_Class="title" Asset_ID="TTVV4136100000000002" Asset_Name="Package_4136_Title" Creation_Date="2004-07-12" Description="Test package C1 title" Product="MOD" Provider="N2BB" Provider_ID="n2bb.com" Verb="" Version_Major="1" Version_Minor="0"/>
    <App_Data App="MOD" Name="Distributor_Royalty_Percent" Value="12.11"/>
    <App_Data App="MOD" Name="Contract_Name" Value="Contract Name"/>
    <App_Data App="MOD" Name="Box_Office" Value="184000000"/>
    <App_Data App="MOD" Name="MSORating" Value="R"/>
    <App_Data App="MOD" Name="Distributor_Royalty_Flat_Rate" Value="15.549"/>
    <App_Data App="MOD" Name="Studio_Name" Value="N2Broadband, INC"/>
    <App_Data App="MOD" Name="Season_Premiere" Value="N"/>
    <App_Data App="MOD" Name="Country_of_Origin" Value="USA"/>
    <App_Data App="MOD" Name="Actors_Display" Value="Harrison Ford, Tommy Lee Jones, Sela Ward"/>
    <App_Data App="MOD" Name="Propagation_Priority" Value="1"/>
    <App_Data App="MOD" Name="Title_Sort_Name" Value="Pkg C1"/>
    <App_Data App="MOD" Name="Director" Value="Villaveces,Eduardo"/>
    <App_Data App="MOD" Name="Genre" Value="Test"/>
    <App_Data App="MOD" Name="Director" Value="Robertson,Mark"/>
    <App_Data App="MOD" Name="Summary_Short" Value="Test Package C1 Summary_Short"/>
    <App_Data App="MOD" Name="Closed_Captioning" Value="Y"/>
    <App_Data App="MOD" Name="Studio_Royalty_Minimum" Value="13.000"/>
    <App_Data App="MOD" Name="Producers" Value="phillips,chris"/>
    <App_Data App="MOD" Name="Studio" Value="Warner Bros."/>
    <App_Data App="MOD" Name="Rating" Value="G"/>
    <App_Data App="MOD" Name="Rating" Value="TV-G"/>
    <App_Data App="MOD" Name="Category" Value="Encryption Test"/>
    <App_Data App="MOD" Name="Provider_QA_Contact" Value="[email protected]"/>
    <App_Data App="MOD" Name="Display_As_Last_Chance" Value="40"/>
    <App_Data App="MOD" Name="Writer_Display" Value="test of writers disp"/>
    <App_Data App="MOD" Name="Home_Video_Window" Value="45"/>
    <App_Data App="MOD" Name="Billing_ID" Value="00270"/>
    <App_Data App="MOD" Name="Episode_ID" Value="E ID"/>
    <App_Data App="MOD" Name="Title_Brief" Value="test content"/>
    <App_Data App="MOD" Name="Display_Run_Time" Value="00:03"/>
    <App_Data App="MOD" Name="Maximum_Viewing_Length" Value="00:01:00"/>
    <App_Data App="MOD" Name="Distributor_Name" Value="fox movies"/>
    <App_Data App="MOD" Name="Studio_Royalty_Percent" Value="12.00"/>
    <App_Data App="MOD" Name="Audience" Value="Adult"/>
    <App_Data App="MOD" Name="Distributor_Royalty_Minimum" Value="14.552"/>
    <App_Data App="MOD" Name="Display_As_New" Value="10"/>
    <App_Data App="MOD" Name="Episode_Name" Value="E name"/>
    <App_Data App="MOD" Name="Preview_Period" Value="60"/>
    <App_Data App="MOD" Name="Title" Value="Test Package C1"/>
    <App_Data App="MOD" Name="Summary_Long" Value="Test Package C1 Summary_Long"/>
    <App_Data App="MOD" Name="Actors" Value="davis,bill"/>
    <App_Data App="MOD" Name="Summary_Medium" Value="Test Package C1 Summary_Medium"/>
    <App_Data App="MOD" Name="Licensing_Window_Start" Value="2009-10-01"/>
    <App_Data App="MOD" Name="Type" Value="title"/>
    <App_Data App="MOD" Name="Suggested_Price" Value="3.95"/>
    <App_Data App="MOD" Name="Run_Time" Value="00:01:02"/>
    <App_Data App="MOD" Name="Chapter" Value="00:01:00:00,test1"/>
    <App_Data App="MOD" Name="Licensing_Window_End" Value="2011-11-01"/>
    <App_Data App="MOD" Name="Subscriber_View_Limit" Value="2003-03-10,2003-03-12,12"/>
    <App_Data App="MOD" Name="Season_Finale" Value="Y"/>
    <App_Data App="MOD" Name="Year" Value="1993"/>
    <App_Data App="MOD" Name="Studio_Royalty_Flat_Rate" Value="14.000"/>
    </Metadata>

    <Asset>

    <Metadata>
    <AMS Asset_Class="movie" Asset_ID="TTVV4136100000000003" Asset_Name="Package_4136_Movie" Creation_Date="2004-07-12" Description="Test Package movie" Product="MOD" Provider="N2BB" Provider_ID="n2bb.com" Verb="" Version_Major="1" Version_Minor="0"/>
    <App_Data App="MOD" Name="Type" Value="movie"/>
    <App_Data App="MOD" Name="Encryption" Value="Y"/>
    <App_Data App="MOD" Name="Audio_Type" Value="Dolby Digital"/>
    <App_Data App="MOD" Name="Screen_Format" Value="Standard"/>
    <App_Data App="MOD" Name="Copy_Protection" Value="Y"/>
    <App_Data App="MOD" Name="Content_FileSize" Value="6902796"/>
    <App_Data App="MOD" Name="Content_CheckSum" Value="81647e1a3d38c4e64af3bbcf15711b40"/>
    </Metadata>
    <Content Value="movie4136.mpg"/>
    </Asset>

    <Asset>

    <Metadata>
    <AMS Asset_Class="poster" Asset_ID="TTVV4136100000000005" Asset_Name="Package_4136_Poster" Creation_Date="2004-07-12" Description="Test Package poster desc" Product="MOD" Provider="N2BB" Provider_ID="n2bb.com" Verb="" Version_Major="1" Version_Minor="0"/>
    <App_Data App="MOD" Name="Type" Value="poster"/>
    <App_Data App="MOD" Name="Image_Aspect_Ratio" Value="240x480"/>
    <App_Data App="MOD" Name="Content_CheckSum" Value="999dcd45d6374feb380c0f49029911b5"/>
    <App_Data App="MOD" Name="Content_FileSize" Value="30"/>
    </Metadata>
    <Content Value="poster4136.bmp"/>
    </Asset>

    <Asset>

    <Metadata>
    <AMS Asset_Class="preview" Asset_ID="TTVV4136100000000004" Asset_Name="Package_4136_Preview" Creation_Date="2004-07-12" Description="Test Package Preview" Product="MOD" Provider="N2BB" Provider_ID="n2bb.com" Verb="" Version_Major="1" Version_Minor="0"/>
    <App_Data App="MOD" Name="Type" Value="preview"/>
    <App_Data App="MOD" Name="Screen_Format" Value="Standard"/>
    <App_Data App="MOD" Name="Audience" Value="General"/>
    <App_Data App="MOD" Name="MSORating" Value="All-Ages"/>
    <App_Data App="MOD" Name="Audio_Type" Value="Dolby Digital"/>
    <App_Data App="MOD" Name="Languages" Value="en"/>
    <App_Data App="MOD" Name="Dubbed_Languages" Value="is"/>
    <App_Data App="MOD" Name="Subtitle_Languages" Value="is"/>
    <App_Data App="MOD" Name="Rating" Value="G"/>
    <App_Data App="MOD" Name="Rating" Value="TV-14 S"/>
    <App_Data App="MOD" Name="Run_Time" Value="00:03:54"/>
    <App_Data App="MOD" Name="Content_FileSize" Value="6902796"/>
    <App_Data App="MOD" Name="Content_CheckSum" Value="81647e1a3d38c4e64af3bbcf15711b40"/>
    </Metadata>
    <Content Value="preview4136.mpg"/>
    </Asset>

    <Asset>

    <Metadata>
    <AMS Asset_Class="encrypted" Asset_ID="TTVE0000000000202939" Asset_Name="TTVV4136100000000003.n2bb.com" Creation_Date="2010-06-28" Description="Encrypted asset for movie4136.mpg" Product="MOD" Provider="N2BB" Provider_ID="n2bb.com" Verb="" Version_Major="1" Version_Minor="1"/>
    <App_Data App="MOD" Name="Content_CheckSum" Value="81647e1a3d38c4e64af3bbcf15711b40"/>
    <App_Data App="MOD" Name="Bit_Rate" Value="3594"/>
    <App_Data App="MOD" Name="Encryption_Key_Block" Value="<?xml version="1.0" encoding="UTF-8"?><ERPayload xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://localhost/namespaces/ERPayload.xsd"> <EncryptionRecord> <ERVer1.0> <TitleIdCode>TTVV4136100000000003</TitleIdCode> <ContentTitle>TTVV4136100000000003</ContentTitle> <EncryptionTime>2010-06-23T18:18:58Z</EncryptionTime> <OLESId>268</OLESId> <Label>12138</Label> <EncryptionMode>2</EncryptionMode> <EncryptedDataVersion>0</EncryptedDataVersion> <EncryptedDataBlock>rd00X2wXJ3uQVd6tNJDimuBMNod/zkXKmxdoR5skbFOd84eVhNdX4NQAE6Nt/iX/cz4IyHXYmYpOHVvLe5GtGFqnRxkoPhBHmMpKgFtDsDX63kgM9p00qI5SEyX4F+VNudY3GZQEQQU4qP61+dXkBYMsnGm5qV18OMnF+xThCGU=</EncryptedDataBlock> </ERVer1.0> </EncryptionRecord></ERPayload>"/>
    <App_Data App="MOD" Name="Receiver_Type" Value="MOTO"/>
    <App_Data App="MOD" Name="Asset_Encrypted" Value="TTVV4136100000000003"/>
    <App_Data App="MOD" Name="Encryption_Type" Value="oles"/>
    <App_Data App="MOD" Name="Encrypting_System_Info" Value="MOTO_OLES_1"/>
    <App_Data App="MOD" Name="Content_FileSize" Value="6902796"/>
    </Metadata>
    <Content Value="movie4136_encr.mpg"/>
    </Asset>
    </Asset>
    </ADI>

    Hi,
    You may use this in the WHERE clause :
    EXISTSNODE(xmltype_column, 'ADI/Asset/Asset[Metadata/AMS/@Asset_Class="encrypted"]/Content') = 0The XML has to be stored in an XMLType column, is that the case?

  • I have an iphone 5s, When i checked for the avialable space it said i had over 3Gb of "Other" files in my iphone. I'v only had my iphone for three days, is it normal to have that much "other" data?

    I have an iphone 5s, When i checked for the avialable space it said i had over 3Gb of "Other" files in my iphone. I'v only had my iphone for three days, is it normal to have that much "other" data?

    Around a gig is normal.
    Also, if you tend to send/receive a lost of MMS messages, that will cause other to increase.  Especially if you keep those messages.

  • DB installs fails with [INS-30060] Check for group existence failed

    Hi folks
    as user jjayet I'm running on OEL 5.6 64 bits the following command to install DB 11gR2 :
    $ /mntmats/SOAVM0504/AUTO_WORK/dbzip_shiphome/database/Disk1/runInstaller -ignoreSysPrereqs -invPtrLoc /ade/jjayet_dte9672/oracle/work/DATABASE1/oraInst.loc -force -silent -waitforcompletion -responseFile /ade/jjayet_dte9672/oracle/work/DATABASE1/db.rsp
    Starting Oracle Universal Installer...
    Checking Temp space: must be greater than 120 MB. Actual 15258 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 16454 MB Passed
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-04-05_06-07-54AM. Please wait ...[FATAL] [INS-30060] Check for group existence failed.
    CAUSE: Unexpected error occurred while trying to check for group existence.
    $ id
    uid=511053(jjayet) gid=8500(dba) groups=8500(dba),59031(oinstall)
    the problems seems relater to accessing /tmp
    as the local disk is not enough to use the default /tmp (the DB install will fail with full disk error as the local disk space is very low )
    I've created a partition from new disk to /tmp which I have then mounted (default is nfs3) :
    # mount /dev/xvdc1 /tmp
    # mount
    /dev/xvdc1 on /tmp type ext2 (rw)
    the result of DB install into /tmp is :
    # cd /tmp
    # ls -altr
    drwxr-xr-x 32 root root 4096 Apr 5 06:07 ..
    drwxr-xr-x 2 jjayet dba 4096 Apr 5 06:36 CVU_11.2.0.2.0_jjayet
    drwxrwxrwx 7 root root 4096 Apr 5 06:36 .
    if I umount /tmp but use the local /tmp
    re-running the DB installer as user jjayet it does not raise the error above
    and now local /tmp contains :
    # cd /tmp
    # ls -altr
    drwxr-xr-x 32 root root 4096 Apr 5 06:07 ..
    drwxr-x--- 10 jjayet dba 4096 Apr 5 06:25 OraInstall2012-04-05_06-25-28AM
    drwxr-xr-x 3 jjayet dba 4096 Apr 5 06:25 CVU_11.2.0.2.0_jjayet
    drwxrwxrwt 5 root root 4096 Apr 5 06:25 .
    do you know how to use tmp over nfs with user jjayet so that the DB can install properly ?
    it seems that the files created as user jjayet into mounted /tmp are not identified properly
    thks in advance
    jean

    thks for the pointer
    I found the post you mention but it does not help
    it does not explain the root cause of the problem but just propose a workaround to pass an option to installer which will popi\up an interactive messgae at install time
    as installation is done automatically through ADE / DTE I cannot use this workaround
    any expert in oracle DB install can help ?
    thks
    Jean

  • How I can check on the existence of a client ActiveX, so that if there is no download begins?

           
    How
    I can check on
    the existence of a client
    ActiveX, so that
    if there is no download begins?
    example:
    I want tocheck for:
    EditDocumentButton = new ActiveXObject "SharePoint.OpenDocuments.2");
    if (EditDocumentButton) {
    EditDocumentButton.EditDocument (strDocument);
    and ifthere is nowarning andlaunch aURLto startthe
    download
    as is?
    thanks

    Hello,
    This control is defined in the OWSSUPP.dll file, a dynamic-link library (DLL) that is installed in the %ProgramFiles%\Microsoft Office\Office14\ directory on the client computer during Microsoft Office Setup. (Read
    full article on MSDN)
    Based on my understanding this below link can help you to open file if activex is not found.
    http://blog.scosby.com/post/2011/08/22/Remotely-Opening-Office-Files-From-SharePoint-2010.aspx
    Now to detect the activex please look this code:
    http://www.andrewshough.com/sharepoint/multiple-office-version-support-in-sharepoint-services-3-0/
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to check for the sub folder in the document library Is already Exist using CSOM?

    Hi,
    My requirement is to create the  folder and sub folder in SharePoint document library. If already exist leave it or create the new folder and the subfolder in the Document library using client side object model
    I able to check for the parent folder.
    But cant able to check the subfolder in the document library.
    How to check for  the sub folder in the document library?
    Here is the code for the folder
    IsFolder alredy Exist.
    private
    string IsFolderExist(string InputFolderName)
    string retStatus = false.ToString();
    try
    ClientContext context =
    new ClientContext(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryLink"]));
                context.Credentials =
    CredentialCache.DefaultCredentials;
    List list = context.Web.Lists.GetByTitle(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryName"]));
    FieldCollection fields = list.Fields;
    CamlQuery camlQueryForItem =
    new CamlQuery();
                camlQueryForItem.ViewXml =
    string.Format(@"<View  Scope='RecursiveAll'>
    <Query>
                                            <Where>
    <Eq>
    <FieldRef Name='FileDirRef'/>
    <Value Type='Text'>{0}</Value>
                                                </Eq>
    </Where>
    </Query>
                                </View>",
    @"/sites/test/hcl/"
    + InputFolderName);
                Microsoft.SharePoint.Client.ListItemCollection listItems = list.GetItems(camlQueryForItem);
                context.Load(listItems);
                context.ExecuteQuery();
    if (listItems.Count > 0)
                    retStatus =
    true.ToString();
    else
                    retStatus =
    false.ToString();
    catch (Exception ex)
                retStatus =
    "X02";
    return retStatus;
    thanks
    Sundhar 

    Hi Sundhar,
    According to your description, you might want to check the existence of sub folder in a folder of a library using Client Object Model.
    Please take the code demo below for a try, it will check whether there is sub folder in a given folder:
    public static void createSubFolder(string siteUrl, string libName, string folderServerRelativeUrl)
    ClientContext clientContext = new ClientContext(siteUrl);
    List list = clientContext.Web.Lists.GetByTitle(libName);
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml =
    @"<View Scope='RecursiveAll'>
    <Query>
    <Where>
    <Eq>
    <FieldRef Name='FSObjType' />
    <Value Type='Integer'>1</Value>
    </Eq>
    </Where>
    </Query>
    </View>";
    //camlQuery.FolderServerRelativeUrl = "/Lib1/folder1";
    camlQuery.FolderServerRelativeUrl = folderServerRelativeUrl;
    ListItemCollection items = list.GetItems(camlQuery);
    clientContext.Load(items);
    clientContext.ExecuteQuery();
    Console.WriteLine(items.Count);
    if (0 == items.Count)
    //create sub folder here
    Best regards
    Patrick Liang
    TechNet Community Support

  • Configure:3955: checking for C compiler default output file name

    Hi,
    I am trying to configure oracle bsd on AIX and got the below error,
    # sh /ldap/db-4.6.21.NC/dist/configure
    checking build system type... powerpc-ibm-aix5.3.0.0
    checking host system type... powerpc-ibm-aix5.3.0.0
    checking if building in the top-level or dist directories... no
    checking if --disable-cryptography option specified... no
    checking if --disable-hash option specified... no
    checking if --disable-mutexsupport option specified... no
    checking if --disable-queue option specified... no
    checking if --disable-replication option specified... no
    checking if --disable-statistics option specified... no
    checking if --disable-verify option specified... no
    checking if --enable-compat185 option specified... no
    checking if --enable-cxx option specified... no
    checking if --enable-debug option specified... no
    checking if --enable-debug_rop option specified... no
    checking if --enable-debug_wop option specified... no
    checking if --enable-diagnostic option specified... no
    checking if --enable-dump185 option specified... no
    checking if --enable-java option specified... no
    checking if --enable-mingw option specified... no
    checking if --enable-fine_grained_lock_manager option specified... no
    checking if --enable-o_direct option specified... no
    checking if --enable-posixmutexes option specified... no
    checking if --enable-pthread_api option specified... no
    checking if --enable-rpc option specified... no
    checking if --enable-smallbuild option specified... no
    checking if --enable-tcl option specified... no
    checking if --enable-test option specified... no
    checking if --enable-uimutexes option specified... no
    checking if --enable-umrw option specified... no
    checking if --with-mutex=MUTEX option specified... no
    checking if --with-tcl=DIR option specified... no
    checking if --with-uniquename=NAME option specified... no
    checking for chmod... chmod
    checking for cp... cp
    checking for ln... ln
    checking for mkdir... mkdir
    checking for rm... rm
    checking for sh... /usr/bin/sh
    checking for a BSD-compatible install... /ldap/db-4.6.21.NC/dist/install-sh -c
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    and in config.log,
    configure:3955: checking for C compiler default output file name
    configure:3982: xlc_r -O2 -D_THREAD_SAFE -Wl,-brtl conftest.c >&5
    /ldap/db-4.6.21.NC/dist/configure[3983]: xlc_r: not found
    configure:3985: $? = 127
    configure:4023: result:
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME "Berkeley DB"
    | #define PACKAGE_TARNAME "db-4.6.21"
    | #define PACKAGE_VERSION "4.6.21"
    | #define PACKAGE_STRING "Berkeley DB 4.6.21"
    | #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
    | #define HAVE_UPGRADE_SUPPORT 1
    | /* end confdefs.h. */
    |
    Is this beacase valid c compiler not existing?
    # which cc
    which: 0652-141 There is no cc in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14/jre/bin /usr/java14/bin.
    # ksh: which:: not found.
    # which c
    which: 0652-141 There is no c in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14/jre/bin /usr/java14/bin.
    Thanks,
    Message was edited by:
    GK Joe

    Joe,
    I presume you are trying to build Oracle BDB and not bsd as you have mentioned.
    Yes, the error message you are getting is for not having the CC compiler in your system or the path isn't set. Check in the /usr/vac/bin directory if you have one in your system. You might find both xlc and cc compiler there. Set this directory to your path so that 'configure' can see it.
    Regards,
    -Debsubhra

Maybe you are looking for

  • HP Laserjet 3030 no longer scans to pdf since running Windows 7

    Since I've been running Windows 7, my HP Laserjet 3030 will no longer scan to pdf - just bmp, jpeg, png & tiff.  I own Adobe Acrobat.  How can I scan to pdf? This question was solved. View Solution.

  • How to play FLAC and Other Lossless Formats on iTunes for Windows Vista x64

    Is it possible? If so, how?

  • Photosmart 475 with HP 100 grey ink

    Hi all, I wish to print some black and white photos on my 475 printer with the HP 100 grey cartridge, but before I go and purchase the cartridge does anyone have any experience using it? Do I need my photo to be in black and white/greyscale, print in

  • /Contents entry in digital signatures

    Hi All, I have problem in making /Contents entry while trying to sign a PDF document.  Infact there is problem in Calculating ByteRange digest and then encrypting it. I have seen cryptographic message syntax v1.5. So I am using Signed-Data content ty

  • Wireless Webcam for Mac?

    Hi folks. I'm needing some webcams around the house, that tie into my wireless network. I don't need outdoor, nor steering/manipulation/sound. I just want to plug it in, point it at my bbq or front door, and sit at my computer to review 4 fps, or som