Need to search contents of text files on a windows network drive....

I am trying to search the content of a directory on a windows network drive for that contains .sas files (essentially text files) for a certain text string. Find does not seem to do this. Any ideas/suggestions?
When I copy a file to my desktop I can do it easily, but that is not an option.

Uh yeah....in my opinion GREATLY affects Apple's claim to windows compatibility......unless there is a solution out there. My firm is windows-based and we have a terabyte or so of data and files related to various stuff all buried in subfolders..and all I want is to search one folder for one text string.
I'm praying for a solution here.....

Similar Messages

  • How to save the RichTextBox Content in Text file

    hI ,
    I NEED TO SAVE THE RichTextBox Content in text file ? 

    If this IS a LabVIEW question, here's an example of how to load a rich text file (to help if you don't know how to get a rich text in LabVIEW).
    If you have a Rich Text Box, you can use the invoke method "SaveFile" to match the function you linked to.

  • Passing contents of text file in oracle cursor

    Hi,
    I need to pass the content of text file in cursor and pass it on to calling codes. then calling codes will generate another text at their end. Can some help how can I pass contents of text file in oracle cursor? Thanks

    i need to do it without tables for some reasons.

  • Modifying the contents of text file ini j2me

    Hi,
    I'm developing a application in j2me wherein i need to erase the previous stored contents fromthe text file and store new content submitted thru the front end program. Kindly please suggest me how to proceed in this regard.
    Thanks

    If you want to change an ini file in the jar file: you can't do that.
    You can however store the changes in the RMS.

  • Scheduling multiple tab BO XI3 report needs to save into multiple text file

    Hi,
    I have BO XI 3 Desktop Intelligence reports, those reports contains multiple tabs. Once after scheduling these reports the output needs to save as different text files (each tab as separate text file). Generally when select output as text file we will get the text file with the data of current tab, but in this scenario I want all the tabs data into different text files. I guess we can do this with macro. But I am not good in macro development, hope somebody can help me.
    Could you please help out for the same!
    Thanks,
    Rama

    Thanks Dan.. I made chenges in code as per your suggestion.. its working fine in DeskI -> local PC
    But this is not working in InfoView level... when i scheduled the same report its not saving into multiple text files... can you please have look...
    macro code as follows:-
    Public Sub SaveAsText()
    Dim StrTxtPath As String
    Dim BusDoc As busobj.Document
    Set BusDoc = ThisDocument
    Dim BusRep As Report
    Dim I As Integer
    On Error GoTo ErrHandler
    'StrTxtPath = "
    xxxx.xxx.xxx.com\common\Reporting\"
    StrTxtPath = "D:\Business Objects\Test_Macro\"
    For I = 1 To BusDoc.Reports.Count
    Set BusRep = BusDoc.Reports.Item(I)
    BusRep.ExportAsText (StrTxtPath & BusRep.Name)
    Next I
    ErrHandler:
    Exit Sub
    End Sub
    When i run this macro through DeskI.. its saving the report as multiple .txt files with respective number of tabs... but the same thing is not working when i tried in scheduling...
    Can you please suggest me what are the changes needs to be done...
    Thanks in Advance
    Thanks,
    Rama

  • HT201250 Hello i am using TimeMachine to back-up entire Mac image (data + system) on an usb-local drive. I would like (on top of it) add a specific plan to back up some files on a remote network drive. Does TimeMachine support multiple back-up plans ? How

    Hello i am using TimeMachine to back-up entire Mac image (data + system) on an usb-local drive. I would like (on top of it) add a specific plan to back up some files on a remote network drive. Does TimeMachine support multiple back-up plans ? How ?

    Time Machine is capable of backing up to multiple locations, and can be used to back up to both a local hard drive and a networked drive (provided that that drive is in or connected to a Time Capsule or another Mac that is sharing it over the network). The catch, though, is that you can't specify different things to back up to different destinations. Whatever you exclude from Time Machine backups is excluded from ALL backups, and whatever is included is included on all.
    So, get a large enough drive that you can back up everything you want in all locations, or use something else for maintaining the network backup.
    More information on these topics can be found here:
    How do I set up Time Machine to a shared drive on another Mac?
    How do I set up Time Machine to a Time Capsule or Airport Extreme?
    "Rotating" Time Machine backup disks

  • Zenwork 7 app to backup file normal.dot to network drive

    I'm attempting to build a simple zenwork app that backs up the file normal.dot from C:\Documents and Settings\NWUSERNAME\Application Data\Microsoft\Templates
    The file no matter what will not copy to the network.
    I have succussfully copied other files to the same network drive but for some reason the normal.dot will not copy
    Any suggestion(s) would be most appreciated
    Thanks

    Originally Posted by AndersG
    MurphNE,
    > I have succussfully copied other files to the same network drive but
    > for some reason the normal.dot will not copy
    >
    > Any suggestion(s) would be most appreciated
    Antivirus? Also check that the file is not zero bytes
    - Anders Gustafsson (NKP)
    The Aaland Islands (N60 E20)
    Novell has a new enhancement request system,
    or what is now known as the requirement portal.
    If customers would like to give input in the upcoming
    releases of Novell products then they should go to
    http://www.novell.com/rms
    Thanks for suggestion
    A) the file is not zero bits and
    B) I disabled the antivirus software
    and my zen app will still not copy the normal.dot file but it will copy another generic file from the same place where my normal.dot file is located
    Again tanks for the suggestion
    Joe Murph

  • Sending Files over a Windows Network

    I am trying to send files from one computer to the other over a windows network. I have absolute path names of the two locations.
    Can you just use "File.renameTo(File);" to pull this off?
    Is there a fast way to move files over a windows network?
    Thanks so much for your help

    With File.renameTo()? Yes.
    between directories on different local drives? Yes.
    or different nodes in a network?I'm not sure what you mean by that, which is most probably my lack of knowledge about computer networking.
    Here's the test I performed:
    File a = new File("C:/Temp/test.txt");
    // 'E:' is (physicaly) a different hard drive than 'C:'
    File b = new File("E:/Temp/test.txt");   
    System.out.println(a.renameTo(b));
    // 'Athene' is a home-SAN-drive/server connected to my router
    File c = new File("//Athene/SHARE/Temp/test.txt");
    System.out.println(b.renameTo(c));Both print true and in both cases I have checked to see if the files really were moved, which was the case.

  • UTL_FILE - Write to a file on a mapped network drive

    Hello,
    I am trying to get the UTL_FILE package to write a file to a mapped network drive on
    Windows NT. We have the following definition in the init<SID>.ora file pointing to the
    network drive:
    UTL_FILE_DIR=v:\hawkrpt
    Here is the code to write to the file:
    CREATE OR REPLACE PACKAGE pkgUtlFileTest AS -- package spec
    PROCEDURE isp_UtlFileTest ( vcDir IN VARCHAR2,
    vcFileName IN VARCHAR2,
    vcOpenType IN VARCHAR2,
    vcMessage1 IN VARCHAR2 );
    END pkgUtlFileTest;
    CREATE OR REPLACE PACKAGE BODY pkgUtlFileTest AS -- package body
    PROCEDURE isp_UtlFileTest ( vcDir IN VARCHAR2,
    vcFileName IN VARCHAR2,
    vcOpenType IN VARCHAR2,
    vcMessage1 IN VARCHAR2 ) IS
    -- vcDir is the utl file directory
    -- vcOpenTpye is the open type a = append, w = write or r = read
    -- vcFileName is any file name you want.
    -- vcmessage is the entry you want placed into the file
    vcUtlFile UTL_FILE.FILE_TYPE;
    BEGIN
    IF LOWER(vcOpenType) = 'a' OR LOWER(vcOpenType) = 'w' THEN
    vcUtlFile := UTL_FILE.FOPEN(vcDir, vcFileName, vcOpenType);
    UTL_FILE.PUT_LINE(vcUtlFile, vcMessage1);
    UTL_FILE.FCLOSE(vcUtlFile);
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.PUT_LINE('no_data_found');
    UTL_FILE.FCLOSE_ALL ();
    WHEN UTL_FILE.INVALID_PATH THEN
    DBMS_OUTPUT.PUT_LINE('UTL_FILE.INVALID_PATH');
    UTL_FILE.FCLOSE_ALL ();
    WHEN UTL_FILE.READ_ERROR THEN
    DBMS_OUTPUT.PUT_LINE(' UTL_FILE.READ_ERROR');
    UTL_FILE.FCLOSE_ALL ();
    WHEN UTL_FILE.WRITE_ERROR THEN
    DBMS_OUTPUT.PUT_LINE('UTL_FILE.WRITE_ERROR');
    UTL_FILE.FCLOSE_ALL ();
    WHEN UTL_FILE.INVALID_OPERATION THEN
    DBMS_OUTPUT.PUT_LINE('UTL_FILE.INVALID_OPERATION');
    UTL_FILE.FCLOSE_ALL ();
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('OTHER ERROR' );
    UTL_FILE.FCLOSE_ALL ();
    END isp_UtlFileTest;
    END pkgUtlFileTest;
    Here is the code to execute the stored procedure:
    Begin
    pkgUtlFileTest.ISP_UTLFILETEST('v:\hawkrpt','test.txt','w','This is a test');
    End;
    When the stored procedure is executed, the following error is returned:
    UTL_FILE.INVALID_OPERATION
    Can someone tell me how to get the UTL_FILE package to write a file to a network drive
    on a Windows NT server?
    Your help will be greatly appreciated!
    Mike

    Did you restart the database after changing the init.ora parameter? Make sure that you have this new value in v$parameter view.

  • Searching for a text file

    hi i want to search for a file in the same folder as my project and read the contents of that file ... i know how to read from text file but i just need to know how i can search in the folder to look for a txt file called me.txt and open it for reading.. any suggestions?
    thanks in advance
    please provide some code for me... thx alot

    Look at the File class in Java API. You can create a file object by passing the file name.
    Then you can check whether the file exists or not by using exist methos of the File. (Of course, you need to know the path of the file).

  • Search word in text file

    Hello,
    someone can help me with code?
    How to search in text file any word and count how many it were repeated?
    For example test.txt:
    hi
    hola
    hey
    hi
    bye
    hoola
    hiAnd if I want to know how many times are repeated in test.txt word "Hi" program must say "3 times repeated"
    I hope you understood what I want, thank you for answers.

    This is my code now.
    package lt.kvk.i3_2.test;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import java.util.Scanner;
    public class Testing {
              public static void main(String args[]) throws Exception {
                   Scanner input = new Scanner(System.in);
                System.out.println("Select word from list:");
                System.out.println();
                try {
                        FileReader fr = new FileReader("src/lt/kvk/i3_2/test/List.txt"); // this is list of words, everything all right here
                        BufferedReader br = new BufferedReader(fr);
                        String s;
                        while((s = br.readLine()) != null) {
                             System.out.println(s);
                        fr.close();
                        String stilius = input.nextLine();   // eneter word which I want to count in File.txt
                    BufferedReader bf = new BufferedReader(new FileReader("src/lt/kvk/i3_2/test/File.txt")); // from this file I need to count word which I entered before
                    int counter = 0;               
                    counter = counter + 1;
                    counter++;
                    counter += 1;
                    String line;
                    System.out.println("Looking for information");
                    while (( line = bf.readLine()) != null){
                    int indexfound = line.indexOf(stilius);
                    if (indexfound > -1) {
                    System.out.println( "At all words which You want to count are "+ counter);
                    bf.close();
                catch (IOException e) {
                    System.out.println("Error");
              }         Here example of file.txt:
    test
    tea
    tree
    test
    car
    wind
    dog
    test
    car
    sea
    tea
    testIf I enter for example word "test" or any from this list I got answer:
    Looking for information
    At all words which You want to count are 3But it must to count how many times in this file this word are repeated, it must be 4
    if I enter word car It must show 2....
    And if I enter word which isn't in list (file.txt)
    Program didn't show error, just:
    Looking for informationThanks for answers.

  • Binary search in a text file.

    Is it possible to carry out binary search directly in the text file without passing the file data into a List data, in order to save RAM?

    If the file is sorted, and if you know what byte position each record begins at, then, yes, using RandomAccessFile you can do this.
    I don't know if it's really the best approach though. If the file's not all that big, or if the relevant parts of its content can be represented in more compact form, then sorting in memory will be simpler and quicker.

  • How to get the content of text file to write in JTextArea?

    Hello,
    I have text area and File chooser..
    i wanna the content of choosed file to be written into text area..
    I have this code:
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.File;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.*;
    public class Test_Stemmer extends JFrame {
    public Test_Stemmer() {
    super("Arabic Stemmer..");
    setSize(350, 470);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setResizable(false);
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    JButton openButton = new JButton("Open");
    JButton saveButton = new JButton("Save");
    JButton dirButton = new JButton("Pick Dir");
    JTextArea ta=new JTextArea("File will be written here", 10, 25);
    JTextArea ta2=new JTextArea("Stemmed File will be written here", 10, 25);
    final JLabel statusbar =
                  new JLabel("Output of your selection will go here");
    // Create a file chooser that opens up as an Open dialog
    openButton.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent ae) {
         JFileChooser chooser = new JFileChooser();
         chooser.setMultiSelectionEnabled(true);
         int option = chooser.showOpenDialog(Test_Stemmer.this);
         if (option == JFileChooser.APPROVE_OPTION) {
           File[] sf = chooser.getSelectedFiles();
           String filelist = "nothing";
           if (sf.length > 0) filelist = sf[0].getName();
           for (int i = 1; i < sf.length; i++) {
             filelist += ", " + sf.getName();
    statusbar.setText("You chose " + filelist);
    else {
    statusbar.setText("You canceled.");
    // Create a file chooser that opens up as a Save dialog
    saveButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JFileChooser chooser = new JFileChooser();
    int option = chooser.showSaveDialog(Test_Stemmer.this);
    if (option == JFileChooser.APPROVE_OPTION) {
    statusbar.setText("You saved " + ((chooser.getSelectedFile()!=null)?
    chooser.getSelectedFile().getName():"nothing"));
    else {
    statusbar.setText("You canceled.");
    // Create a file chooser that allows you to pick a directory
    // rather than a file
    dirButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JFileChooser chooser = new JFileChooser();
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int option = chooser.showOpenDialog(Test_Stemmer.this);
    if (option == JFileChooser.APPROVE_OPTION) {
    statusbar.setText("You opened " + ((chooser.getSelectedFile()!=null)?
    chooser.getSelectedFile().getName():"nothing"));
    else {
    statusbar.setText("You canceled.");
    c.add(openButton);
    c.add(saveButton);
    c.add(dirButton);
    c.add(statusbar);
    c.add(ta);
    c.add(ta2);
    public static void main(String args[]) {
    Test_Stemmer sfc = new Test_Stemmer();
    sfc.setVisible(true);
    }could you please help me, and tell me what to add or to modify,,
    Thank you..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    realahmed8 wrote:
    thanks masijade,
    i have filter the file chooser for only text files,
    but i still don't know how to use FileReader to put text file content to the text area (ta) ..
    please tell me how and where to use it..How? -- See the IO Tutorials on Sun for the FileReader (and I assume you know how to call setText and append in the JTextArea).
    Where? -- In the actionPerformed method (better would be a separate thread that is triggered through the actionPerformed method, but that is probably beyond you at the moment), of course.
    Give it a try.

  • Write diadem search results to text file

    Is there a solution within DIAdem for exporting specific information from a search result into a text file? For example: I perform a search which returns all of the files, groups, and/or channels which I want to work with; now I would like to have, say, the file paths of all the results of my search exported to a text file. Is this possible? I could not find a direct way of doing this, but perhaps a script already exists for doing stuff like this?

    Hi mrclary,
    I did not have this code handy, but I was able to whip it up for you.  Let me know if you have any questions.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Search Result Paths.zip ‏1 KB

  • Searching content of .dmg files

    Is there any way to do a "contents" search in a .dmg file?
    I have several .dmg files, made with DiskUtility , encrypted, and then opened as a virtual disk, under Devices on my MacBook Air and used to store files.
    But I sometimes want to search the contents of those files. (I am doing all this when the file is open and listed under Devices)
    I can't get Spotlight to search it,  even when the following Apple's instructions on how to index folders or volumes, http://support.apple.com/kb/ht2409.
    I also tried using direct instructions with the terminal using,
    sudo mdutil -i on /Volumes/volume_name
    This one is particularly curious because it gives different results with different files. When I created a new test file it returned,
    Air:~ DAir$ sudo mdutil -i on /Volumes/test1
    Password:
    /Volumes/test1:
              Indexing enabled.
    Even so, I still could not get spotlight or search in a finder window to reliably find any content.
    (sometimes if I opened, made a small alteration and then saved a file it would find content in that file, although not in any other files on the volume.)
    but when I use this same command with an older volume of the same sort it always returns the result, "indexing disabled"
    sudo mdutil -i on /Volumes/Error12Codes
    /Volumes/Error12Codes:
              Indexing disabled.
    It can never find any content in these older files.
    Likewise, the program EasyFind will not find content on these volumes even when set to find "file contents"
    Can anyone help with this? How can I search the content of a .dmg volume?

    A test .dmg file that I just made does have .spotlight -V100 in it.
    Still it will not find a word in the contents of a file, unless I first open that file, make a small change in it, save it, and close it. Then it seems that it has indexed that file. 
    In fact it would seem that when that happened it indexed all the files in that .dmg volume, and I can now find the contents of any file there.
    But the .dmg files that I made earlier do not have the .spotlight-v100 in them and spotlight will not find any contents.
    And still if I give the command "sudo mdutil -i on /Volumes/Error12Codes" it returns
    "Indexing disabled"
    Putting these .dmg files into the privacy section of the Spotlight preferences and then removing them as Apple suggests, seems to have no effect.
    What is going on?

Maybe you are looking for

  • Customer Exits for Delivery & Goods Receipt - Very Urgent

    Hi Everyone,   We have got a requirement where we have to trigger a screen exit/badi at the time of posting the material document in transaction MIGO or delivery document in VL01N, can any one tell me the right exit as this is very urgent. Rgds,

  • Itunes match step 2

    I'm having major issues trying to transfer my itunes my from my pc to my new imac. tried migration assistant and couldnt find any of the files, tried direct copying and it couldnt seem to find any files upon playing, then via homeshare but not copied

  • User session doesn't disconnected

    Dear Friends , I got a problem in my production server (oracle-10.2.0.1.0) in unix (AIX - 5.3) server where I kill the user's session but it is not disconnected from the database . Here the output : SQL> select username,sid,serial#,status from v$sess

  • Rounding to 2 decimal places

    When using Math.round, I know to round to 2 decimal places it would be Math.round(variable * 100.0)/100.0. I have this in one program and it works. (answer = Math.round(answer*100.0)/100.0;) I have it in another program and it doesn't (double answer

  • JAXB generated files problem

    Hi, I am posting a fragment from my XSD. JAXB generates the files and compiles fine, but during runtime, I get a NoClassDefFound error when it tries to look for a particular file. This is the xsd : <xs:element name="BillingAddress"> <xs:complexType>