Incremental search in java files

Hi,
i m supposed to write an application for Incremental Search in the Java Files.
it is such that, u type a word, then go on hitting any spl key as F3..it should take u to the every next occurance of the word in the current file and highlight it....
any one who has done b4, doing or knows abt this ......
plzzzz hlp me..
thanx in adv
SK

Hi,
Just giving you an idea to solve this, but implementation of this depends on your hardwork.
We can use Threads concept here. Use a integer variable, which is a global and is used later.
Now TWO java threads are activated.
One of the thread will constantly pool the Standard Input device for desired key value. Once it gets the desired key press value it will increment the integer variable.
The Second thread will serve as the searching thread. This will contantly check the value of the integer variable and the search string variable. If the integer value is more than 0, then this thread will run a methos which will point to the next occurance of the search word. After this it will decrement the value of the integer variable.
You may need to use Synchronization concept also in this when it comes to integer variable.
Hope this idea helps.
Do let me know once u implement the solution.
Cheers.

Similar Messages

  • Unable to search within .java files on windows xp

    windows Search can't seem to find things in my .java files (like grep) on my Windows XP machine.
    Here's what I do: In the windows explorer, I select a folder which has some .java files beneath it, and I select Search off the folder's popup menu. That brings up a dialog that lets me name to file to search for, and also a word or phrase in the file. I enter filename of "*.java" and it finds all the *.java files OK, but if I also enter a value in the "word or phrase in the file" field and do a search, then it always says "0 files found" (I enter a word that I know is in some of the java files). Search finds words OK in .html or .txt files, but not in .java files. Weird.
    Is there some setting in the windows registry that affects how searches are done in .java files?

    Follow the instructions in this article. I've runinto
    the same thing, and the solution works.
    http://support.microsoft.com/default.aspx?scid=kb;EN-US
    Q309173Thank you. It now works for me too.
    PC�Great! Glad at least someone (ok, 2) stopped by to say thanks. OP, hello? Geez, you even put up the 10 dukies as if this is important to you.

  • How to search .java files by Search tool in NWDS or any other tool?

    Hi All,
    I can easily search .JSP files by NWDS's Search tool, but I have a hard time to search Java files by this tool.  Can anyone guide me how to search Java files which contain a specified string by using Search tool in NWDS? or any other tool?
    Thanls. Jin

    Hi Jin,
    You can search Custom Java files with NWDS Search tool for specified string. But not standard Java files.
    Suppose you have extend z_userR3 base on UserR3 and contains string some help then you can click on search in NWDS
    Then click on File it will open Search box with 4 tag
    1. File Search
    2. Help Search
    3. Java Search
    4. Plug-in Search
    Click on File Search tab and provide the text in Containing text input box and give java file name with wild characters like  *.java
    Select Workspace under Scope and hit search button. It will search string in your custom Java file. This method will not search string in Standard Java classes of SAP.
    If you want to search in standard SAP  java classes then you should know about what you are searching i.e. whether it is field, Method, Package, Constructor and Type  select proper radio button under Search For box then tryo to select proper radio button under Limit To if you want to search everywhere then select All Occurrences. You should select Workspace under Scope.
    Suppose nothing comes after selected Type then go for other option one by one Method, Field etc...
    Expert people will give you more information.
    I hope this will help you.
    Regards.
    eCommerce Developer

  • What is the best method to parse a java file for function names

    st="class";
    while (StreamTokenizer.TT_EOF != tokenizer.nextToken ())
       if (StreamTokenizer.TT_WORD == tokenizer.ttype)
        if (tokenizer.sval.toLowerCase().equals(st.toLowerCase())){
        System.out.print (tokenizer.nextToken() + " "); //prints the class name on the console
        fileOut.print (tokenizer.sval + " "); //prints the class name to a file
    }The above program searches a .java file for classes. I want to modify it so that it searches for function names as well. After several hours of figuring out various ways to do it with StreamTokenizer, I still havnt found a way. There seems to be no way to go back, i.e. no previousToken method, in StreamTokenizer.
    Is it possible to do search for using StreamTokenizer, and are there easier ways of doing it?

    Simple string tokenizing isn't an effective way to do this. You probably want something like ANTLR.

  • Searching for a file in java

    What I am trying to do is not very uncommon. I want to open a file in it's default application (or at least in a common one.)
    Mainly I am currently thinking either HTML files or PDF's.
    What I was wondering is how to search for a file and get its directory path. For example I want to search for the file "Acrobat". In windows its directory is "C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe"
    But I know in MAC or Unix the path could be very different. Not only that, but what if they did not use the default installation directory. I just want to find the path of a file by invoking a search. Is there currently any way to do this?
    I know I can open a JFileChooser and make the user search and find the program they wish to run it in, but that certainly is not very user friendly. I'd rather the program just searched for the proper application(s) and then called the exec() method to run the file in the program.
    Any help is appreciated.

    java.io.File provides a listRoots() method that returns all file system roots. So for Windoze you'd get 'A:/', 'B:/' 'C:/' ... etc.
    Unix you'd get '/' and so on.
    Now you can use other File methods to recursively scan the roots.
    Here's some (untried) code to get you going that searches for all java.exe found on all roots.
    import java.io.File;
    import java.util.Arrays;
    import java.io.FilenameFilter;
    import java.util.List;
    import java.io.IOException;
    public class FindIt {
      public FindIt () {
        File[] roots = File.listRoots();
        List list = new ArrayList();
        for (int i = 0; i < roots.length; i++) {
          scan(roots,list,new FilenameFilter(){
    public boolean accept(File file, String name) {
    return new File(file,name).isDirectory() ||
    name.equals("java.exe");
    public static void scan(File path,
    List list,
    FilenameFilter filter) throws IOException {
    // Get filtered files in the current path
    File[] files = path.listFiles(filter);
    // Process each filtered entry
    for (int i = 0; i < files.length; i++) {
    // recurse if the entry is a directory
    if (files[i].isDirectory()) {
    scan(files[i],list,filter);
    else {
    // add the filtered file to the list
    list.add(files[i]);
    } // for
    } // scan
    public static void main(String[] args) {
    new FindIt();
    You will run into problems with some roots as they will be removeable media (cd's diskettes) or network drives (potentially huge number of dirs to scan). So I do not recommend that you search on all roots, but a subset.
    Dave

  • [ANNOUNCEMENT] Hetman 1.0 Early Access  - powerful Java file manager

    SoftAge has launched the Early Access Program for Hetman 1.0.
    Handy Java desktop application Hetman is a dual-panel file manager for the huge Java community.
    Hetman is powered by Fusion framework (based on SWT), it has a decent responsive cross platform GUI and impressive overall performance.
    Tabbed rich design interface, native cross platform widgets implementation, powerful text editor, advanced console and much more make Hetman the indispensable and full-featured programmer�s tool.
    The following features are currently almost complete:
    - two panel file management UI
    - powerful incremental file navigation
    - built-in text editor with syntax highlight
    - advanced console
    - Windows networking support
    - Zip archives
    - FTP
    - Open API
    Planned features:
    - Linux and Mac OS X implementations
    - Enhancements for Java developers
    - just ask � and we'll do it :)
    The most important keys to start:
    Alt-F1, Alt-F2 � change drive
    Ctrl-T � open new file tab
    Ctrl-O � open new console
    F4 � edit file under cursor
    Ctrl-W � close tab
    <any symbol in file panel> � start incremental search
    Ctrl-F � start incremental search in editor and console output
    Alt-Up, Alt-Down � go to next/previous item in selection, search results etc.
    Alt-Left, Alt-Right � go to next/previous tab
    You can use Button Bar at the bottom to figure out the most important key combinations yourself. It automatically changes state according to current location and modifier key pressed (Ctrl, Alt, Ctrl+Alt),
    Hetman�s Open API has been designed to enable adding features easily and quickly. You can develop your own implementation of the file system that will be fully supported by Hetman.
    We are focused to bring Java applications to desktop. Hetman is our first attempt in this direction. We invite you to download EAP (Early Access Program) Hetman�s version for testing and evaluation. Your opinion is what matters most to us.
    You can read more about Hetman at http://www.myhetman.com.
    Early Acess Program page: http://www.myhetman.com/download/eap.html
    Should you have any questions or comments, please don�t hesitate to contact us at [email protected].
    Best regards,
    Hetman Team

    You know, I think I'll make it a personal policy to never look at anything that someone dumps an ad for in the formums.

  • How do I include a JAVA file in my website  using DreamweaverCC ?

    Hi.  I searched the forums and it seems that all questions relating to JAVA and Dreamweaver elicit zero replies.
    I hope that someone has some direction.  Thanks again.
    I have a JAVA file that I want to include or have run within one of my pages in my WebSite.
    file > new > create > and there is not an option for JAVA but there is one for PHP etc. etc.
    How do I incorporate a java script into my Web Site ?
    I thought that I could just copy the code into the file here - at least to begin with  - but JAVA  runs in the background.
    I am lost
    conceptually
    and I do not know how to go about this task
    structurally.
    Thanks again,
    Regina

    JQuery is a core JavaScript library used by millions of web sites.  It's the "do more & write less code framework."  If you're into re-inventing the wheel every time you need an advanced feature (plugin), feel free to manually code it yourself with JavaScript.  However, you'll need to test & debug your scripts in every conceivable browser and OS before you can be sure it's viable for use on a production site.
    On the other hand, you could use a plugin and be up & running in 5 minutes or less. See the code below.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5, with Fancybox2 Viewer</title>
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!--FANCYBOX plugins-->
    <link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
    <script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
    <style>
    body {
        background: silver;
        font-family:Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
    #wrapper {
        width: 1000px; margin:0 auto;
        background:#FFF;
    /**this styles image container**/
    #thumbs p {
        float: left;
        width: 180px;
        height: 12.5em;
        margin: 10px 22px 0 22px; /**space between containers**/
        padding: 10px; /**space around containers**/
        border: 1px solid silver;
        /**rounded borders**/
        -moz-border-radius: 20px;
        -webkit-border-radius: 20px;
        border-radius: 20px;
        /**this styles caption text**/
        font: italic 14px/1.5 Geneva, Arial, Helvetica, sans-serif;
        color: #666;
        text-align: center;
    /**recommend using same size images**/
    #thumbs img {
        width: 160px; /**adjust width to thumbnail**/
        height: 120px; /**adjust height to thumbnail**/
        margin-bottom: 1.5em;
        opacity: 0.75;
    #thumbs img:hover { opacity: 1.0 }
    /**float clearing**/
    #thumbs:after {
        content: ".";
        clear: left;
        font-size: 0px;
        line-height: 0;
        display: block;
        visibility: hidden;
    </style>
    </head>
    <body>
    <div id="wrapper">
    <h1><a href="http://fancyapps.com/fancybox/">Fancybox2</a> Viewer with images</h1>
    <!--insert thumbnails with links to full size images below-->
    <div id="thumbs">
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 1" /></a> <br />
    Caption 1 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 2" /></a> <br />
    Caption 2 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 3" /></a> <br />
    Caption 3 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 4" /></a> <br />
    Caption 4 </p>
    <!--end thumbs--></div>
    <!--end wrapper--></div>
    <!--FancyBox function code-->
    <script>
    $(document).ready(function() {
        $('.fancybox').fancybox();
    </script>
    </body>
    </html>
    Nancy O.

  • How to load a java file into Oracle?

    Hello,
    I have some problem in loading a java file into Oracle 8i. I used "loadjava -user <userName/Password> -resolve <javaClassName>" command.
    JAVA Version used JDK 1.5
    When calling this class file from a trigger gives this error
    ORA-29541: class ANTONY1.DBTrigger could not be resolved.
    Can anyone help me to resolve this problem?

    Hello,
    Which username did you use to load the class, and which user is running the trigger?
    The default resolver searches only the current user's schema and PUBLIC so the java class needs to be loaded into one of these.
    cheers,
    Anthony

  • Urgent + Search a delimited file for more then one string

    Hi All
    Urgent please help I am trying to search a file for 2 different strings.
    This is how the command prompt will look like
    java match "-t|" -4 -f Harvey -10 -f Atlanta callbook.txtPlease help me with identifying how many search criterias have been entered on command prompt.
    "-t|" - denotes a delimiter
    -4 - denotes the field number
    -f - case sensitive
    Thanks

    Hi
    Thanks for your quick response and I apologise I will never put urgent on my posting again.
    C:\>java match "-t|" -4 -f Harvey -10 -f Atlanta callbook.txt
    This example lists records for Atlanta with first name Harvey.
    I am able to get one search criteria but when I have 2 as above (Harvey and Atlanta) I get lost I do not know how to get these arguments from the commandline and still do a search correctly. My code at the moment is doint a hard coded search so I was trying to extract the arguments that's where I got stuck.
    The main aim of my app is to search a delimited file for a search criteria passed through a command prompt.
    This is what I have done so far.
    import  java.io.*;
    import java.util.*;
    public class assess1
        static public void main(String args[])
            int[] totals = new int[10];
            try
                BufferedReader inFile = new BufferedReader(new FileReader(args[0]) );
                try
                    String line;
              String StrSearch = "HARVEY";
              int counter = 0;
                    boolean foundIt = false;
                    while((line = inFile.readLine()) != null)
                     // search for the string
                      String[] values = line.split("\\|");
                       for (String str : values) {
                   if (str.equals("HARVEY")) {
                               System.out.println(line);
                             System.out.println();
                        counter++;
              if (counter == 0) {
                   System.out.println("String not found");
              inFile.close();
                catch(IOException e)
                    System.err.println("IO exception");
                    System.exit(1);
                catch(NumberFormatException e)
                    System.err.println("Value " + e.getMessage() + "not numeric");
            catch(FileNotFoundException e)
                System.err.println( "Couldn't open " + e.getMessage() );
                System.exit(1);
    }

  • How to compile a java file which is in memory?

    how to compile a java file which is in memory?
    such as:
    String s="class MyClass {....}";
    how to compile the string?
    thx

    come on ...That was a perfectly valid solution.
    Do you know how to call the sun.* compiler? If not then search the forums for it. If that interface still exists (which it might not in newer versions) you then will create a string stream from your class and pass it to that.

  • How to put incremental change in a file to the disk??

    Hi,
    I am having my own simple file editor. Now even if I make a small change in a file and want to save those changes I have to write the whole content again.
    I mean it's similar like writing a fresh file.
    Is there a way through which I should write only the incremental changes to the file rather than writing the whole thing .
    Imp: can anyone provide me some good link or material related to NIO for better understanding.
    Thanks,
    Param.

    If the file contains lines* that are all the same length (which can be accomplished by padding each line with the appropriate number of spaces) then you can use an indexed access method, as described by the RandomAccessFile API here:
    http://java.sun.com/javase/6/docs/api/java/io/RandomAccessFile.html
    * You can have all of the data - that is, the entire file - in a single line, if you want; it's not necessary to create multiple lines. In this case you would use a read method after positioning, rather than a readline method.

  • .java files located in different directories - trouble compiling

    My attempts at getting my main .class file (../master/BicycleMaster.class) to automatically recognize that it's supporting .class file (../master/child/BicycleChild.class) located one directory below keep failing and the .java files won't compile.
    If I move both .java files to the same location (in the ../master directory) then they compile and run just fine, but it's when I want to separate them into the two different directories that I have a problem compiling them. They won't compile because the references in BicycleMaster.jave to BicycleChild.java can't be resolved.
    I was hoping - if you have time - that you might be able to show me by example in the code below? In the file ../master/BicycleMaster.java I added 'package master;' as the first line of the code. It was my impression that this would tell the compiler to look in the sub-directories for any additional .java files. This didn't work either.
    HERE ARE THE DETAILS:
    Directory of K:\COMMON\ITS\STEVEB\java\master
    03/04/2008 04:25 PM <DIR> .
    03/04/2008 04:25 PM <DIR> ..
    03/04/2008 04:24 PM 612 BicycleMaster.java
    03/04/2008 03:54 PM <DIR> child
    1 File(s) 612 bytes
    K:\COMMON\ITS\STEVEB\java\master>type BicycleMaster.java
    package master;
    class BicycleMaster {
        public static void main(String[] args) {
            //Create 2 different bicycle objects
            BicycleChild bike1 = new BicycleChild();
            BicycleChild bike2 = new BicycleChild();
            //Invoke methods on the objects
            bike1.changeCadence(50);
            bike1.speedUp(10);
            bike1.changeGear(2);
            bike1.printStates();
            bike2.changeCadence(50);
            bike2.speedUp(10);
            bike2.changeGear(2);
            bike2.changeCadence(40);
            bike2.speedUp(10);
            bike2.changeGear(3);
            bike2.printStates();
    }Directory of K:\COMMON\ITS\STEVEB\java\master\child
    03/04/2008 03:54 PM <DIR> .
    03/04/2008 03:54 PM <DIR> ..
    03/04/2008 03:54 PM 524 BicycleChild.java
    1 File(s) 524 bytes
    K:\COMMON\ITS\STEVEB\java\master\child>type BicycleChild.java
    class BicycleChild {
        int cadence = 0;
        int speed = 0;
        int gear = 1;
        void changeCadence(int NewValue) {
            cadence = NewValue;
        void changeGear(int NewValue) {
            gear = NewValue;
        void speedUp(int increment) {
            speed = speed + increment;
        void applyBrakes(int decrement) {
            speed = speed - decrement;
        void printStates() {
            System.out.println("Your cadence: "+cadence+", Your speed: "+speed+", Your gear: "+gear);
    }HERE ARE THE ERRORS:
    First I compile the ../master/child/BicycleChild.java file and it compiles fine. This I attempt to compile ../master/BicycleMaster.java and I get the following errors:
    K:\COMMON\ITS\STEVEB\java\master>javac BicycleMaster.java
    BicycleMaster.java:5: cannot find symbol
    symbol : class BicycleChild
    location: class master.BicycleMaster
    BicycleChild bike1 = new BicycleChild();
    ^
    BicycleMaster.java:5: cannot find symbol
    symbol : class BicycleChild
    location: class master.BicycleMaster
    BicycleChild bike1 = new BicycleChild();
    ^
    BicycleMaster.java:6: cannot find symbol
    symbol : class BicycleChild
    location: class master.BicycleMaster
    BicycleChild bike2 = new BicycleChild();
    ^
    BicycleMaster.java:6: cannot find symbol
    symbol : class BicycleChild
    location: class master.BicycleMaster
    BicycleChild bike2 = new BicycleChild();
    ^
    4 errors

    Thanks so much for responding. Progress was definetly made as the compiler now works longer before erroring out. Sadly it's still erroring out for a reason I'm not understanding. Please let me know if you can see where I'm going wrong.
    Here's how it played out for me:
    K:\COMMON\ITS\STEVEB\java>echo %classpath%
    .;k:\common\its\steveb\java\;C:\Program Files\Java\jre1.6.0_04\lib\ext\QTJava.zip
    K:\COMMON\ITS\STEVEB\java\master\child>javac BicycleChild.java
    K:\COMMON\ITS\STEVEB\java\master\child>cd ..
    K:\COMMON\ITS\STEVEB\java\master>javac BicycleMaster.java
    BicycleMaster.java:5: cannot find symbol
    symbol : class BicycleChild
    location: class master.BicycleMaster
    BicycleChild bike1 = new BicycleChild();
    ^
    BicycleMaster.java:5: cannot find symbol
    symbol : class BicycleChild
    location: class master.BicycleMaster
    BicycleChild bike1 = new BicycleChild();
    ^
    BicycleMaster.java:6: cannot find symbol
    symbol : class BicycleChild
    location: class master.BicycleMaster
    BicycleChild bike2 = new BicycleChild();
    ^
    BicycleMaster.java:6: cannot find symbol
    symbol : class BicycleChild
    location: class master.BicycleMaster
    BicycleChild bike2 = new BicycleChild();
    ^
    4 errors
    Here are the two programs revised as you suggested:
    K:\COMMON\ITS\STEVEB\java\master\child>type BicycleChild.java
    package master.child;
    class BicycleChild {
        int cadence = 0;
        int speed = 0;
        int gear = 1;
        void changeCadence(int NewValue) {
            cadence = NewValue;
        void changeGear(int NewValue) {
            gear = NewValue;
        void speedUp(int increment) {
            speed = speed + increment;
        void applyBrakes(int decrement) {
            speed = speed - decrement;
        void printStates() {
            System.out.println("Your cadence: "+cadence+", Your speed: "+speed+", Your gear: "+gear);
    }K:\COMMON\ITS\STEVEB\java\master>type BicycleMaster.java
    package master;
    class BicycleMaster {
        public static void main(String[] args) {
            //Create 2 different bicycle objects
            BicycleChild bike1 = new BicycleChild();
            BicycleChild bike2 = new BicycleChild();
            //Invoke methods on the objects
            bike1.changeCadence(50);
            bike1.speedUp(10);
            bike1.changeGear(2);
            bike1.printStates();
            bike2.changeCadence(50);
            bike2.speedUp(10);
            bike2.changeGear(2);
            bike2.changeCadence(40);
            bike2.speedUp(10);
            bike2.changeGear(3);
            bike2.printStates();
    }

  • How to open java files in a java project

    hi ,
    i have to implement a java program analyzer and now i have implement a java parser using javaCC. My parser parse a java file at a time and i have to read and parse all java files in a java project. my idea is to enter
    java project name *.jpx as an input and search java files in project and parse them one by one, or , to enter the folder path of java source files of project and parse them.
    i am a beginer of java language and i don't know where to start to do it.
    is there someone tell me which way is easier and better for my case and some ways to implement it. i search sample files that is similar to my case but i cannot find any.
    thanks in advance.
    ami

    if u don't mind , can u tell me which tutorial i
    should read for that? http://java.sun.com/docs/books/tutorial/essential/io/
    This... for example.
    xH4x0r

  • I got ~M as EOL when I edit a java file in NetBeans

    Hi,
    When I edit a java file in the NetBeans editor, at the end of line, I got ~M (When viewed in a Unix environment) at end of every line. Pls help me get rid of that. It such a long file that I cannot delete it manually.
    Thanks,
    Guhan

    1) joe filename.java
    2) control+K F
    3) type `m (yes, that's a backwards apostrophe. Should be same key as ~)
    4) type R for replace
    5) hit enter to replace with EOL
    6) type R for rest of file.
    7) control +K X to save and exit.
    Any particular reason you can't do this with your global search and replace in netbeans? :P
    J

  • How to search for a file?

    Hi I am currently using the below code to detect a file automaticaly in a thumbdrive. So currently I have to state the path directory to detect the particular file. Is there a way to search for the file in the thumbdrive using Java?
    public class Detect {
    public static void main(String[] args)
    File f = new File("f:\\");
    while (! f.exists())
    try { Thread.sleep(500); }
    catch (InterruptedException e) {}
    System.out.println("drive inserted!");
    }

    You'll need to recursively search through a top directory and all its subdirectories for all files. Here is a link how to do this.
    http://www.javapractices.com/Topic68.cjp
    You can search for all drives A through Z for the file (using something like new File("F:") and catching the exception if not found (and dont do anything with the exception). But exclude C and D drive since they are usually hard drives and take forever to search through. Also, you may want to use File.separator instead of '/" or '\' in your code since windowsXP uses one while Unix uses the other and you would want your code to be able to run on either operating system.
    Are you building a web page with this? if so, it will not work since your search code would be running on the server and not on the client's machine. Even if you were able to run it on the client machine via his browser, you cant because of security reasons (end users dont want to give you access to thier drives). If its a web page, look into file upload html tag called <input type="file". This allows the end-user to navigate on his machine to where the file is and download it without you having to search for it.
    If you writing an application instead of a web page, I think there is an applet you can use that will do the same thing as <input type="file".
    Searching though a directory structure isn't good since it takes too long for users t wait.

Maybe you are looking for

  • Cannot connect to iTunes store - error -3212

    iTunes is telling me that I cannot connect to their store or to my account. But I am connected to the internet as writing this support request should prove. The message says 'an unknown error occured - error (-3212)'  This error only happened yesterd

  • I'm trying to upgrade to IOS5 but I get an error 0xE8000067 and I can't update. What do I do?

    Like I said above, I am trying to update to iOS5 but I have a problem. When I try to update it says that it is backing up. But after about 5 minutes I get a 0xE8000067 error. I found someone saying to transfer purchases and if there is one app that k

  • Loading external SWF into a FLA (help!!!)

    Hello, I'm building a website in AS2.  I have created a xml driven flash image gallery and am trying to get this into my website.  I'm totally new to flash.   In the website I'm building, I have a gallery button on the main page with this code: over3

  • Can't open itune

    Can someone help me? I just installed Window vista today and now when i clicked on itune, It states "the folder 'itunes' is on a locked disc or you do not have write permision for this folder". Can someone help me how to get itune working? Thanks

  • Error while accessing Risk Management 3.0

    Hi, I get the below error when I click on Risk Management navigation bar "Portal runtime error. An exception occurred while processing your request. Send the exception ID to your portal administrator. Exception ID: 07:26_23/11/09_0002_2466451 Refer t