Doing a project on search n update utlity for files in java

having a simple swing interface to select the files in one folder and then updating the same in another corresponding folder that contains a copy of all the files of previous folder... how to go about it.....

Hello LW130003,
Do you mean you have the two issues?
1. Do you mean that you can’t use the search function in control panel? You can only use the search function by using the shortcut Win+S?
2. When you open any shortcut, you will receive error message ‘This file does not have a program associated with if for performing this action..’?
Please take the following steps for troubleshooting:
1. Create a new account, log on the account and check if the issue still exists in the new account.
If the issue doesn’t exist in the new account, please refer to the following article to fix a corrupted user profile.
http://windows.microsoft.com/en-us/windows/fix-corrupted-user-profile#1TC=windows-7
2. If you have issue in open all shortcut in Windows 8, please refer to the following article to restore the registry.
http://www.eightforums.com/tutorials/8486-default-file-associations-restore-windows-8-a.html
Please note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Please refer to the following KB to back up the registry key before you change the registry.
http://support.microsoft.com/kb/322756
Best regards,
Fangzhou CHEN
Fangzhou CHEN
TechNet Community Support

Similar Messages

  • Updation in zip file through java program

    Hi,
    Can any buddy help me updating zip file using java programs. I dont want to delete the zip file but I want to update single file in the zip.
    Any clue ?
    Regards,
    Ashish

    I mean I want to update a zip file using java program.
    Suppose there are 4 files zipped into single zip file.
    zipped.zip contains a.txt, b.txt. c.txt. d.txt
    Now the contect of a.txt got changed and I want to update zipped.zip to with the changed a.txt.
    I have one way of creating a new file with new set of a.txt, b.txt, c.txt and then delete the earliar zipped.zip and rename the newly created zipped to zipped.zip.
    I dont want to do the same as above mentioned way. Is there any way provided in java API to remove any entry or update any entry?
    I feel now the problem has got explained in details.
    Any help ?

  • Why does'nt the Store Search Index update When the Keyword Element's Text is Changed?

    I have a Podcast that has been up for a year with 239 episodes (Arlington Public Schools School Board Meetings) in the iTunes Store.
    The first episodes I created had too many words in the keyword element of an enclosure (more than 12).  The most relevant words I wanted indexed had been truncated.  I made the needed changes to each keyword element and resubmitted the RSS Feed XML.
    An example of such a change was to add the word "speaker" as a searchable word to certain enclosures keeping with the 12 word limit in the hopes that a search for "speaker" would show all speakers in the result.  All of the new episodes work as expected but retro changes have no effect on the search index it only indexes search words when the episode is created.
    What trick can I use without having to recreate each offending episode with an new title and/or GUID?
    Please Help
    Thank you

    I'm afraid the inner workings of the Store software are pretty murky - Apple don't publicize them and a lot of the time one is left trying to estimate what is going on from observation.
    In fact there have been complaints that the Search function doesn't take any notice of keywords at all, only titles, so if they're working for you that's an improvement: but I can't offer any way of resolving the problem you describe, nor assuring you that if you do re-post the episodes as if they were new it would have the desired effect (it would have the undesirable effect of all your subscribers downloading them all over again so you wouldn't be popular).
    You could try asking Support at podcasts 'at' apple.com, but it's a pound to a penny you won't get a coherent answer - they may not even know themselves.

  • What does the iOS 5.1.1 update do for the Iphone 4 users?

    I installed the new update but It hasnt seemed to make any difference, It seems like the only differences are for the Iphone 4S.... What about the people that have the iphone 4, Any difference?

    http://support.apple.com/kb/DL1521

  • Does anyone else hate the new updated OS for the ipod touch?

    I dont like the way the email is delivered now or that you cant delete email without opening each email. Please put it back to the way it was.

    You do not have to open mail to delete it in iOS 5.  When viewing the list of emails in preview for any given account, just tap "Edit" and you can then tap on each message to be deleted, hit delete (bottom of screen) once you picked them all and they are deleted.  Also in the preview list, you can swipe (left-to-right) on a message to delete it.

  • How to Update existing XML File Using Java Swing

    Hi,
    I am reading XML file and getting keywords into JList. When i add some keywords into JList through textfield and remove keywords JList, then after click on save button it should update xml file. How can i do it ?
    Please provide me some code tips for updating xml file
    This is the code that i am using for reading XML File:
    import javax.swing.*;
    import java.awt.event.*;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    import java.io.IOException;
    import java.util.*;
    import java.text.Collator;
    import java.util.regex.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import com.cloudgarden.layout.AnchorConstraint;
    import com.cloudgarden.layout.AnchorLayout;
    public class getKeywords extends JFrame implements ActionListener
    static JPanel p;
    static JLabel lbl;
    static JButton btnSave,btnAdd,btnRemove;
    static String path;
    static Vector v;
    static JList lstCur;
    static JTextField txtKey;
    Document dom;
    static image imgval;
    NodeList nodelstImage;
    static AnchorLayout anchorLay;
    private DefaultListModel lstCurModel;
    public getKeywords()
         super("Current Keywords");
        v=new Vector();
        p=new JPanel();
        txtKey=new JTextField(10);
        btnAdd=new JButton("Add");
        btnRemove=new JButton("Remove");
        btnSave=new JButton("Save");
        lbl=new JLabel("Current Keywords");
        lstCurModel=new DefaultListModel();
            lstCur=new JList();
            JScrollPane scr=new JScrollPane(lstCur);
        runExample();
         lstCur.setModel(lstCurModel);
         p.add(lbl);
         p.add(scr);
         p.add(txtKey);
         p.add(btnAdd);
         p.add(btnRemove);
         p.add(btnSave);
         add(p);
         btnAdd.addActionListener(this);
         btnRemove.addActionListener(this);
         btnSave.addActionListener(this);
         setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    public static void main(String arg[])
         getKeywords g=new getKeywords();
         g.resize(250,400);
         g.setVisible(true);     
    public void actionPerformed(ActionEvent ae)
         if(ae.getSource()==btnAdd)
              lstCurModel.addElement(txtKey.getText());
         if(ae.getSource()==btnRemove)
              lstCurModel.remove(lstCur.getSelectedIndex());
         if(ae.getSource()==btnSave)
              //Code to Write
         public void runExample()
              //Parse the XML file and get the DOM object
              ParseXMLFile();
              //Get the Detail of the Image Document
              parseImageDocument();
              //Get the Detail of the LML Document
              //parseLMLDocument();
              //System.out.println(lmlval.Title);
         public void ParseXMLFile()
              //Get the Factory
              DocumentBuilderFactory builderFac = DocumentBuilderFactory.newInstance();
              try
                   //Using factory get an instance of the Document Builder
                   DocumentBuilder builder = builderFac.newDocumentBuilder();
                   //parse using builder to get DOM representation of the XML file
                   dom = builder.parse("LML.xml");
              catch(ParserConfigurationException pce)
                   pce.printStackTrace();
              catch(SAXException sax)
                   sax.printStackTrace();
              catch(IOException ioex)
                   ioex.printStackTrace();
         public void parseImageDocument()
              //Get the root element
              Element docImgEle = dom.getDocumentElement();
              //Get a nodelist for <Image> Element
              nodelstImage =  docImgEle.getElementsByTagName("Image");
              if(nodelstImage != null && nodelstImage.getLength() > 0)
                   for(int i = 0; i < nodelstImage.getLength(); i++)
                        //Get the LML elements
                        Element el = (Element)nodelstImage.item(i);
                        //Get the LML object
                        getImage myImgval = new getImage();
                        imgval = myImgval.getimage(el);
                        v.addElement(new String(imgval.Thumb));
                        String[] x = Pattern.compile(",").split(imgval.Keys);
                        for (int s=0; s<x.length; s++)
                        lstCurModel.addElement(x[s].trim());
                        //System.out.println(x[s].trim());
    }     Thanks
    Nitin

    You should update your DOM document to represent the changes that you want made.
    Then, using the Transformation API you simply transform your document onto a stream representing your file. Something like this:
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    transformer.setOutputProperty(OutputKeys.INDENT, "yes");
    // TODO - set indentation amount!
    Source source = new DOMSource(dom);
    Result result = new StreamResult(file);
    transformer.transform(source, result);Hope this helps.

  • Search a word inside a file uisng java

    Hi all,
    I have to write a java program that will search the given word inside all the files in the given directory.Finally it has to display the occurance of the word along with its location...i dono how to start with.Can anybody help me with an idea..Thanks in advance.

    Look in the java.io package. The class File represents both flat files and directories.
    There's also a class in there with a name like "LineNumberReader". You'll probably find that helpful.
    You didn't say what the criteria are for finding a match, for example whether it needs to be a case-insensitive match, or whether it must match the whole word or just the start of the word, etc.
    There are a variety of ways you can do text pattern matching, but I'd suggest that you do it in the simplest possible way, which would probably be just to use String.indexOf. Later on if this isn't sufficient, you can move up to regular expressions (see the java.lang.regex package).

  • Searching dreamweaver-based website for files that use a specific template

    I use about 5 different templates on my site right now. I'd
    like to switch several groups of pages to a different template. Is
    there a way to search for all pages that use one template, then
    apply a different template to them?

    You must do it with ALL pages closed. And yes, it will work.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "pdeitel" <[email protected]> wrote in
    message
    news:ercu4a$12r$[email protected]..
    > hmmm. can I do that from Dreamweaver? I tried to test
    this approach with
    > one
    > page, but DW did not let me make the change because the
    code
    >
    > <!-- InstanceBegin template="/Templates/TEMPLATE NAME
    GOES HERE.dwt"
    > codeOutsideHTMLIsLocked="false" -->
    >
    > is in the uneditable part of the page.
    >

  • Alternative option to updating the services file on the local computer

    Hi,
    Our project needs to add updates to the file C:\windows\system32\drivers\etc\services in order to allow excel reports to work from the SAP enterprise portal.
    The client will need to apply this change in the services file to all the desktop computers of the end-users. They are now asking whether there is an alternative solution to updating the services file on the local machine. Our team does not think that there is one but maybe one of you experts out there can provide some more insight.
    Any help would be greatly appreciated.
    Thanks.
    Best Regards,
    Giwan Persaud

    For our normal sapgui rollout we never change the services file.
    This is only possible if you change in saplogon.ini the MSSrvPort section, the names to numbers:
    instead of
    Item88=sapmsPS1
    you use
    Item88=3600
    Then you don't need the services file ( excepte the standard ones which you can rollout once )
    sapdp*
    sapgw*
    you to check if this works for Excel also!

  • 10.5 Finder search windows no longer find files!!!!

    We have a new X Serve with OS 10.5 Server and Three Macs running OS 10.5 Family pack. The X Serve holds all of our work files. The other Macs are simply work stations. Up until recently we have been able to search the X Serve for files by typing in a 5 digit job number. (All of our jobs are saved in this manner) But starting last Thursday, the search windows return no results. We have double checked that the server is checked and that we're searching the right location. We can even go and manually retrieve the file IF we know what it's called and what folder it's in. Even when we are looking at the file, residing in the folder, typing the file's name in the search window results in "0 items". The file is there! I can can find it, why can't Leopard?

    I would suggest that you post your question in the [Xserve forum|http://discussions.apple.com/forum.jspa?forumID=854].

  • Mac OS 10.5 Search Windows can't find files.

    We have a new X Serve with OS 10.5 Server and Three Macs running OS 10.5 Family pack. The X Serve holds all of our work files. The other Macs are simply work stations. Up until recently we have been able to search the X Serve for files by typing in a 5 digit job number. (All of our jobs are saved in this manner) But starting last Thursday, the search windows return no results. We have double checked that the server is checked and that we're searching the right location. We can even go and manually retrieve the file IF we know what it's called and what folder it's in. Even when we are looking at the file, residing in the folder, typing the file's name in the search window results in "0 items". The file is there! I can can find it, why can't Leopard?

    This article may help you guys.
    http://support.apple.com/kb/HT3192
    There is a part about how to enable Spotlight searching on shares.
    Spotlight provides more reliable results when remote users search a server volume with Spotlight searching enabled. Important: This change takes effect when you enable Spotlight searching on a sharepoint. In order to take advantage of this improvement on a sharepoint where you have already enabled Spotlight searching, disable Spotlight searching, save, re-enable Spotlight searching, and save again. The sharepoint will remain online during this process, but Spotlight searching will be unavailable for a short time while the index is rebuilt.

  • Search network directory for file JS CS3

    I need to enhance a javascript that I created a while back, by adding the functionality to search a network drive for files.
    I have been able to test for file exists on one of the volumes, but the other volume hasn't got the same stucture and needs a recursive search that drills down directories. and then back out to start the next set of folders.
    Has anyone had call to do this themselves, and if so, could you please point me in the right direction?
    Many thanks

    Thanks for that Mark.
    Every time I searched I didn't include 'recursive' and ended up with loads of discussions to choose from - yet I used the word in my question. I'm obviously working too hard!
    Problem solved now, many thanks.
    Andrew

  • Finder Searches for Files That Do NOT Contain Certain Words

    Is it possible to do a search in the Finder for files that do NOT contain a certain word?

    As far as I know you can't do that. It would be lovely to pipe the results of one search into another....
    What happens is if you specify a type folder, then exclude a file system name, the command excludes folders that have the word in their name.
    You may want to take a look at this:
    http://developer.apple.com/documentation/Carbon/Conceptual/SpotlightQuery/index. html
    See the section on "Query Expression Syntax" and the one on "Spotlight Metadata Attributes Reference" (click link, then click the link in the Introduction to the section). Most the other stuff is of interest mainly to programmers, but those two sections are actually useful to regular folks.
    Francine
    Francine
    Schwieder

  • Why does itunes get locked with last update after clicking on search button ?

    Why does itunes get locked with last update after clicking on search button ?

    Why does itunes get locked with last update after clicking on search button ?

  • [svn:osmf:] 11361: Adding a generic binary search utility ( updating project file).

    Revision: 11361
    Author:   [email protected]
    Date:     2009-11-02 05:21:35 -0800 (Mon, 02 Nov 2009)
    Log Message:
    Adding a generic binary search utility (updating project file).
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.flexLibProperties

    Hi,
    try this forum: WebCenter Portal
    Frank

Maybe you are looking for