Making A List of Files or Folders

Is there anyway of making a list of the files or folders I have if I want to send someone a list of files in a folder - or folders for a particular topic without having to actually send them the files.
I know I can do a screen shot but I was wondering if there was any shortcut in the system that would create a list.
Thanks.

You could just use Terminal and use the command line
function "ls".  For instance, if you want to list the contents
of a directory called foo in your home directory type in
ls ~/foo
You will get a list of all the files in that directory.  To see
all the listing options available type
man ls
then use the arrow key to scrol through all the display options.
Then press q to return to the command prompt.
You can then just select that are with the listing with your
mouse, copy, and then paste the info into your document.

Similar Messages

  • Making A List Of Files In A Folder

    Is there a way to make a list of all the files and folders within a root folder? I have thousands of pictures of record label scans in folders by artist name. I'd like to compile a list of some sort of all the folder names and the file names. I tried doing a snapshot of the screen and/or window but it only shows what you see on the monitor not what you would normally need to scroll down to see, which is not many at all. Can anyone please help?? Thanks.

    Hi sjaakad,
    I second eww's thank-you for that tip! I saw eww's reply mentioning TextWrangler and having a little free time for tinkering I downloaded it and tried your suggestion:
    The simplest way is to drag a folder symbol from the Finder into a new BBEdit window
    That's neat stuff! I'm sure I'll find uses for this in the future....thanks again,
    littleshoulders

  • Print a list of files and folders

    Dose anyone know an easy way of listing files and folders from a disk? I need an inventory of the names on some ZIP disks.

    You can also get TextWrangler...
    Drag any Folder, even a Whole drive to a new text window & get a list like this...

  • How to make a hierarchical list of file/folders like in the Finder

    Hi,
    I have a hard drive that I'm going to use as a safety backup. I've filled it with files and folders and am going to store it off site. I'd like to retain a list of what I've got on there, for reference.
    I can make a complete list of what's on there, with UNIX 'ls -R', but it's huge and you can't encapsulate the folders, it just lists everything. I need a document that reproduces the list of files and folders in the same way that the finder does. Is there any program that does that?
    Thanks
    Bob

    I've seen third-party backup utilities that provide that sort of catalogue interface, but I can't name any off hand.
    Yep, I even used to have one, way back in OS 7 thru 8.6 on my 8600. I think it was something from Iomega, they used to give you several free tools, and I believe a catalogue maker was one of them. I think it broke with some version of OS 9, and I got a shareware program called DiskTracker. Both did exactly what is wanted: they would catalog any sort of disk, be it drive, removable media (I had a bunch of Syquest EZDrive cartrides), even CDs. You would open the file in the program, and navigate just like in the Finder. Don't remember just how much information was preserved about files.
    Try going to VersionTracker, and do a search on disk inventory or catalog software, I'm sure there are still such things around, though I doubt they would be free.
    Francine
    Francine
    Schwieder

  • Cannot find invisible files or folders any more

    Find or Spotlight used to be able to find invisible or hidden files, folders, etc. This is key for some purposes.
    Now it doesn't work. I can list hidden files or folders in terminal, but cannot find them at all using Spotlight, even when I know they are there. For example, searching for Name Contains private AND Visibility is Visible or Invisible returns nothing, even though ls -a returns private/ as one of the folders at root level.
    Does anyone have an explanation for this change in behavior, or a fix? Using a utility like TinkerTool is not a satisfactory workaround, because searching still fails even when hidden files are shown in the finder.

    Hi, j.e.s.
    First, we need to define hidden and invisible files, as they are distinct:
    • A hidden file is one whose file name begins with a period (.) . Example: a file named ".hidden" would not show up in Finder. This is a UNIX® standard.
    • An invisible file has its invisible file-system attribute enabled.
    A file can be both hidden and invisible, e.g. its name begins with a period and its invisible file-system attribute enabled.
    Now, as to searching for these with Spotlight:
    • By default, Spotlight neither indexes nor searches either hidden or invisible files.
    • The Find criterion for Visibility does not work. Find under Tiger is implemented in Spotlight. That the Visibility criterion does not work extends beyond the facts that Spotlight does not index hidden or invisible files nor will it search (with the exception of Raw Queries using criteria based solely on file system metadata) outside of its index. The function simply does not work. Even using a raw query to search for invisible files, when compared to using the Spotlight mdfind Terminal command, produces inconsistent results.
    I have an entire appendix in the Tiger Edition of my book — from the info above is provided — that demonstrates all of these anomalies with Spotlight concerning searching for hidden and invisible files.
    Your best bet for searching for hidden or invisible files under Tiger is to use EasyFind.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • To rename a page or folder In either the Folder List panel or the Folders view of the site, right-click the file or folder, and then click Rename. Type the new name.

    I set out to change the page name ready to publish on my hosts server after Having used a temp. name, simple so the " Expression web user guide says" I have not been able to find the "Folder List panel" of The folders view of the site,
    I have just completed an hour methodically searching for the two files listed, I would be most grateful for some simple instructions on how to find the entities listed in the Title above, which I cut and pasted to make sure that I got it right.
    Regards, 
    Robert
    Robert 1000

    If you are in the standard configuration, click "Site|Open Site," then browse to and open your site. With an open site, you will see a tab at the top labeled "Site View." Another tab at the bottom will be labeled "Folders,"
    because you are then in Folders view of the site (recognize that terminology?). At the same time, unless you have your panels hidden, in the upper left side you will see a panel labeled "Folders List." If you do not see this panel, click "Panels|Reset
    Current Workspace."
    cheers,
    scott
    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.

  • New files and folders on a Linux client mounting a Windows 2012 Server for NFS share do not inherit Owner and Group when SetGID bit set

    Problem statement
    When I mount a Windows NFS service file share using UUUA and set the Owner and Group, and set the SetGID bit on the parent folder in a hierarchy. New Files and folders inside and underneath the parent folder do not inherit the Owner and Group permissions
    of the parent.
    I am given to understand from this Microsoft KnowledgeBase article (http://support.microsoft.com/kb/951716/en-gb) the problem is due to the Windows implmentation of NFS Services not supporting the Solaris SystemV or BSD grpid "Semantics"
    However the article says the same functionality can acheived by using ACE Inheritance in conjunction with changing the Registry setting for "KeepInheritance" to enable Inheritance propagation of the Permissions by the Windows NFS Services.
    1. The Precise location of the "KeepInheritance" DWORD key appears to have "moved" in  Windows Server 2012 from a Services path to a Software path, is this documented somewhere? And after enabling it, (or creating it in the previous
    location) the feature seems non-functional. Is there a method to file a Bug with Microsoft for this Feature?
    2. All of the references on demonstrating how to set an ACE to achieve the same result "currently" either lead to broken links on Microsoft technical websites, or are not explicit they are vague or circumreferential. There are no plain Examples.
    Can an Example be provided?
    3. Is UUUA compatible with the method of setting ACE to acheive this result, or must the Linux client mount be "Mapped" using an Authentication source. And could that be with the new Flat File passwd and group files in c:\windows\system32\drivers\etc
    and is there an Example available.
    Scenario:
    Windows Server 2012 Standard
    File Server (Role)
    +- Server for NFS (Role) << -- installed
    General --
    Folder path: F:\Shares\raid-6-array
    Remote path: fs4:/raid-6-array
    Protocol: NFS
    Authentication --
    No server authentication
    +- No server authentication (AUTH_SYS)
    ++- Enable unmapped user access
    +++- Allow unmapped user access by UID/GID
    Share Permissions --
    Name: linux_nfs_client.host.edu
    Permissions: Read/Write
    Root Access: Allowed
    Encoding: ANSI
    NTFS Permissions --
    Type: Allow
    Principal: BUILTIN\Administrators
    Access: Full Control
    Applies to: This folder only
    Type: Allow
    Principal: NT AUTHORITY\SYSTEM
    Access: Full Control
    Applies to: This folder only
    -- John Willis, Facebook: John-Willis, Skype: john.willis7416

    I'm making some "major" progress on this problem.
    1. Apparently the "semantics" issue to honor SGID or grpid in NFS on the server side or the client side has been debated for some time. It also existed as of 2009 between Solaris nfs server and Linux nfs clients. The Linux community defaulted to declaring
    it a "Server" side issue to avoid "Race" conditions between simultaneous access users and the local file system daemons. The client would have to "check" for the SGID and reformulate its CREATE request to specify the Secondary group it would have to "notice"
    by which time it could have changed on the server. SUN declined to fix it.. even though there were reports it did not behave the same between nfs3 vs nfs4 daemons.. which might be because nfs4 servers have local ACL or ACE entries to process.. and a new local/nfs
    "inheritance" scheme to worry about honoring.. that could place it in conflict with remote access.. and push the responsibility "outwards" to the nfs client.. introducing a race condition, necessitating "locking" semantics.
    This article covers that discovery and no resolution - http://thr3ads.net/zfs-discuss/2009/10/569334-CR6894234-improved-sgid-directory-compatibility-with-non-Solaris-NFS-clients
    2. A much Older Microsoft Knowledge Based article had explicit examples of using Windows ACEs and Inheritance to "mitigate" the issue.. basically the nfs client "cannot" update an ACE to make it "Inheritable" [-but-] a Windows side Admin or Windows User
    [-can-] update or promote an existing ACE to "Inheritable"
    Here are the pertinent statements -
    "In Windows Services for UNIX 2.3, you can use the KeepInheritance registry value to set inheritable ACEs and to make sure that these ACEs apply to newly created files and folders on NFS shares."
    "Note About the Permissions That Are Set by NFS Clients
    The KeepInheritance option only applies ACEs that have inheritance enabled. Any permissions that are set by an NFS client will
    only apply to that file or folder, so the resulting ACEs created by an NFS client will
    not have inheritance set."
    "So
    If you want a folder's permissions to be inherited to new subfolders and files, you must set its permissions from the Windows NFS server because the permissions that are set by NFS clients only apply to the folder itself."
    http://support.microsoft.com/default.aspx?scid=kb;en-us;321049
    3. I have set up a Windows 2008r2 NFS server and mounted it with a Redhat Enteprise Linux 5 release 10 x86_64 server [Oct 31, 2013] and so far this does appear to be the case.
    4. In order to mount and then switch user to a non-root user to create subdirectories and files, I had to mount the NFS share (after enabling Anonymous AUTH_SYS mapping) this is not a good thing, but it was because I have been using UUUA - Unmapped Unix
    User Access Mapping, which makes no attempt to "map" a Unix UID/GID set by the NFS client to a Windows User account.
    To verify the Inheritance of additional ACEs on new subdirectories and files created by a non-root Unix user, on the Windows NFS server I used the right click properties, security tab context menu, then Advanced to list all the ACEs and looked at the far
    Column reflecting if it applied to [This folder only, or This folder and Subdirectories, or This folder and subdirectories and files]
    5. All new Subdirectories and files createdby the non-root user had a [Non-Inheritance] ACE created for them.
    6. I turned a [Non-Inheritance] ACE into an [Inheritance] ACE by selecting it then clicking [Edit] and using the Drop down to select [This folder, subdirs and files] then I went back to the NFS client and created more subdirs and files. Then back to the
    Windows NFS server and checked the new subdirs and folders and they did Inherit the Windows NFS server ACE! - However the UID/GID of the subdirs and folders remained unchanged, they did not reflect the new "Effective" ownership or group membership.
    7. I "believe" because I was using UUUA and working "behind" the UID/GID presentation layer for the NFS client, it did not update that presentation layer. It might do that "if" I were using a Mapping mechanism and mapped UID/GID to Windows User SIDs and
    Group SIDs. Windows 2008r2 no longer has a "simple" Mapping server, it does not accept flat text files and requires a Schema extension to Active Directory just to MAP a windows account to a UID/GID.. a lot of overhead. Windows Server 2012 accepts flat text
    files like /etc/passwd and /etc/group to perform this function and is next on my list of things to see if that will update the UID/GID based on the Windows ACE entries. Since the Local ACE take precedence "over" Inherited ACEs there could be a problem. The
    Inheritance appears to be intended [only] to retain Administrative rights over user created subdirs and files by adding an additional ACE at the time of creation.
    8. I did verify from the NFS client side in Linux that "Even though" the UID/GID seem to reflect the local non-root user should not have the ability to traverse or create new files, the "phantom" NFS Server ACEs are in place and do permit the function..
    reconciling the "view" with "reality" appears problematic, unless the User Mapping will update "effective" rights and ownership in the "view"
    -- John Willis, Facebook: John-Willis, Skype: john.willis7416

  • Snow Leopard Finder's Get Info fails to show Owner and Group for some files or folders which reside on a Shared Volume, hosted by G5 Server w/ OS 10.4 - why?

    Frustrations with file permissions abound, as certain co workers are unable to manually determine their level of permission or who to ask to make changes to files and folders belonging to others. Users of Snow Leopard desktop OS get unhelpful feedback via Finder's Get Info, seeing only the permissions listed for "Everyone" and a statement that "You have custom access".  The custom message exists, presumably, because ACL's are employed on the shared volume in an attempt to give managerial control over these volumes to specific users, even if all users can create files and folders on those volumes.
    Shared volumes are partitions of an external RAID which are set up as sharepoints on a G5 tower running Server 10.4.  Other persons in the office, using machines that are running desktop OS 10.5, can correctly see the assigned Owner and Group permissions (although the "custom access" still shows).  This at least lets the 10.5 user know who created a given file or folder, so that they can resolve permissions-restricted issues if they come up (i.e. User A wants to delete file X, but as it was created by User B, A must contact B and have them delete it.  In 10.6 it appears that A cannot determine who B is).
    I know that ACL's are functioning (enabled on the drive) since we have been making use of ACL-granted write privileges for quite a while (and the custom access seems to be evidence too).
    An error I encountered, pertaining to this, is that I used a 10.6 machine to create a working folder, then generated and saved several files in this location.  Expected permissions thus would be Owner = me (i.e. the user I was logged in as), R/W, Group = staff, R only, Everyone = R only.  However, immediately the permissions shown in Finder / Get Info consisted only of Everyone = R only, with no entry for Owner or Group.  Moreover, clicking + to add either an Owner or a Group resulted in error message that I had entered an invalid user or group, even though I typed in correct info (such as trying to add "staff" as a group).

    Frustrations with file permissions abound, as certain co workers are unable to manually determine their level of permission or who to ask to make changes to files and folders belonging to others. Users of Snow Leopard desktop OS get unhelpful feedback via Finder's Get Info, seeing only the permissions listed for "Everyone" and a statement that "You have custom access".  The custom message exists, presumably, because ACL's are employed on the shared volume in an attempt to give managerial control over these volumes to specific users, even if all users can create files and folders on those volumes.
    Shared volumes are partitions of an external RAID which are set up as sharepoints on a G5 tower running Server 10.4.  Other persons in the office, using machines that are running desktop OS 10.5, can correctly see the assigned Owner and Group permissions (although the "custom access" still shows).  This at least lets the 10.5 user know who created a given file or folder, so that they can resolve permissions-restricted issues if they come up (i.e. User A wants to delete file X, but as it was created by User B, A must contact B and have them delete it.  In 10.6 it appears that A cannot determine who B is).
    I know that ACL's are functioning (enabled on the drive) since we have been making use of ACL-granted write privileges for quite a while (and the custom access seems to be evidence too).
    An error I encountered, pertaining to this, is that I used a 10.6 machine to create a working folder, then generated and saved several files in this location.  Expected permissions thus would be Owner = me (i.e. the user I was logged in as), R/W, Group = staff, R only, Everyone = R only.  However, immediately the permissions shown in Finder / Get Info consisted only of Everyone = R only, with no entry for Owner or Group.  Moreover, clicking + to add either an Owner or a Group resulted in error message that I had entered an invalid user or group, even though I typed in correct info (such as trying to add "staff" as a group).

  • Shrink the List of File Types in the Save As List

    How to I simplify the list of file types in the Save-As file type list? I use less than six file types. I have no need for most of these.
    It would be nice to have my top 5 and then the ability to go off-menu if needed for others.
    Thanks,
    Drew

    I was able to reduce the list of file types by changing some file extensions. In the following folder
    C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Required\Plug-Ins\File Formats
    I inserted a tilda (~) into the file extension for these files:
    Cineon.~8bi
    Dicom.~8bi
    JPEG2000.~8bi
    PCX.~8bi
    Pixar.~8bi
    Radiance.~8bi
    U3D.~8bi
    Adobe Photoshop CC has "File Formats" in 4 different places! Two each for the x86 and 64 bit versions.
    Since I don't use the x86 version very much, there was no great desire to mess with those two folders.
    I'd would also like to get rid of
    JPEG Stereo (*.JPS)
    Multi-Picture Format (*.MPO)
    Photoshop Raw (*.RAW)
    Portable Bit Map (*.PBM, *.PGM, *.PPM...)
    I see "Camera Raw.8bi" in
    C:\Program Files\Common Files\Adobe\Plug-Ins\CC\File Formats
    but renaming it didn't help.
    For others who want to do this, and are concerned, just make a note of the file extensions you are changing so you know how to return to the way things were if you ever need to save as a file type that has been removed from your list.
    You must relaunch Photoshop after making any file name changes to see the effects.
    Any ideas on how to get rid of 4 more file types from my list?

  • Moving files between folders is very slow

    Hi, I have an iMac 2011. Processor: 2.7GHz Intel Core i5/ Memory 4GB
    OS X Yosemite, version 10.10.1
    After I change my OS from Mavericks to Yosemite, moving files between folders is very slow.
    For example, if I move one jpg file in Desktop to Pictures folder (or just any other folders like Trash), it takes about 3 seconds.
    When I was still using Mavericks, it made that Ding sound and transferred files right away. However, now, although it makes the Ding sound right away, the file is still there for 3 seconds.
    I tried to clean up my mac using many apps, but they never fixed this problem.
    I've also tried what I saw on this one thread. OS X File Transfers Very Slow
    Go->Connect to Server then type "cifs://server-address" but it says there is a problem and did nothing. (maybe different issue)
    Please help!

    There may be other issues, but you installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates
    if it's not already checked.

  • Getting the Finder to display your list of files

    Hi all,
    The program I am contemplating would create a list of files that may be in several different folders. I'd like to present that list of files to the user in a format similar to the Finder's search results, letting the user move, copy or delete the files. Is there a way to tell the finder to display a list of files? I'd rather not re-invent the wheel by making a Finder-like interface since the Finder does what I want. I just need to tell it the set of files I want it to act on. I could make a temporary folder and fill it with aliases, but that seems messy. The Finder search results window is much cleaner and has the nifty expanding folder path graphic at the bottom. I've dug around some for an Applescript means of doing this and for Finder Plug-ins.
    If that's possible, is there a way to get the Finder to tell me which file is selected in any particular Finder window?
    Thanks,

    <%
         File fParent=new File(getServletContext().getRealPath("/~tolmank/hsql"));
         File[] myDBFiles=fParent.listFiles();
         String name="";
         String fSize="";
         String lastM="";
         %>
    <table width="50%" border="0">
    <tr bordercolor="#000000" bgcolor="#CCCCCC">
    <td width="36%" align="center">FILE</td>
    <td width="30%" align="center">SIZE(kb)</td>
    <td width="34%" align="center">LAST MODIFIED </td>
    </tr>
    <%
         for(int i=0;i<myDBFiles.length;i++){
              name=myDBFiles.getName();
              fSize=(myDBFiles[i].length()/1024)+"kb";
              SimpleDateFormat sdf=new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z" );
              Date lastD=new Date(myDBFiles[i].lastModified());
              lastM= sdf.format(lastD);
    %>
              <tr>
                   <td align="center"><%=name%></td>
                   <td align="center"><%=fSize%></td>
                   <td align="center"><%=lastM%></td>
              </tr>
    <%
    %>
    </table>

  • Snow Leopard finder doesn't list all files on Windows 7 volumes

    From my Macbook Pro (10.6.8), I can connect to my Mac Pro, while it is running Windows 7 in Boot Camp, in order to access the Mac Pro's 6 volumes (1 Boot Camp, 5 Mac volumes). This is using SMB via Finder's 'Connect to server…' on an Airport network.
    However, Finder never displays all the files and folders on any of the Mac volumes it connects to through Windows 7. It seems to show approximately the first 18-9 files and folders, and then nothing. The same applies when I open a nested folder — it doesn't list all of its contents.
    Any ideas as to what's causing this and how I can fix it? I have searched all over but can't find any answers yet, so I'm hoping someone here has seen this before.

    Thanks for the reply, but I do have the Restore Windows box checked (see below). And the Resume features info (cnet link) only addresses how to turn the feature off, either selectively or globally. I'm simply looking for the functionality that I had with Snow Leopard and now seems to be absent. Maybe it's a bug in my Finder.

  • How can I sort all files and folders by size?

    Due to lack of space I need to find the biggest files and folders on my Mac OSX Mountain Lion, but "Size" is not in the Find options.
    And I don't know the wildcard to sort all files and folders by size in Easyfind.
    Thanks
    Sarah

    There are applications out there which are designed to show you files and the space they use.  Some of these applications and some strategies for making more room on your disk are given below.
    Freeing Up Hard Disk Space
    Freeing space on your Mac OS X startup disk
    Clearing Disk Space on Your Mac
    Seven ways to free up drive space

  • How to list all files in directories

    Here's what I'd like to do, and I know there's a genius on this forum that knows the answer:
    Let's say I burn a disc with lots of folders and files. How could I see a list of all those folders with their included files in one easy to read place? Like, could I go to Terminal and list the contents of the disc in kind of a directory tree sorta layout that could be copied to a text document?
    I have several dozen discs of data I've burned over the years, and when I want to find a certain file, I have to open the disc and manually click thru all the folders to see their contents until I find what I'm looking for. I'd like to make an "index" of each disc so I can find things faster, or better, list the folders/files in a text file I could save, 1 per burned disc. Does this make sense. Is this do-able?

    That works pretty sweet, too. As with other techniques, a lot of output to filter thru, hard on the eyes, might kill a printer, I dunno. As far as the output itself... what is this command asking for, in English, like, "Ms. Terminal application: please list ..." What? (the " -lR part)
    And the results:
    /Users/rob/Desktop/Websites/ARP-new content,May 2008/arp new ens/new vert en:
    total 752
    -rw-r--r-- 1 rob rob 48593 Jun 3 16:28 608v1_en.jpg
    What's the "total 752" mean?
    What's the "1" in front of the "rob rob" part?
    Apparently the date only shows the year if it's other than this year?
    I noticed Terminal doesn't like spaces in path names, like "/Users/rob/Desktop/My Best Folder Ever",
    should I rename everything like "MyBest_FolderEver", or is there a workaround for name spaces? Just some curiosity. Do you know of a concise, easy to digest guide to commands in the Terminal? It's something I'd like to learn more about. And thanks for the DIRECT answer to my original post.

  • How to search all files in folders/subfolders for one or more strings?

    I have a list of files (full path and file name) in Column D of my worksheet.  I'm trying to figure out how to run some code to open each file in this array (starting on D14 and going down), search for one or more strings, and then put an "X"
    in Column I, in the same row as the file name.
    How can I do that?
    I experimented with a few samples of code.  It seems pretty easy to do it in one folder, but not all sub folders.  The folder/subfolder is setup a specific way for a specific purpose.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Below is an example that allow you to search a directory and its subdirs txt files(you can change this), read its lines and search for specific word:
    using System;
    using System.IO;
    using System.Linq;
    class Program
    static void Main(string[] args)
    try
    var files = from file in Directory.EnumerateFiles(@"c:\", "*.txt", SearchOption.AllDirectories)
    from line in File.ReadLines(file)
    where line.Contains("Microsoft")
    select new
    File = file,
    Line = line
    foreach (var f in files)
    Console.WriteLine("{0}\t{1}", f.File, f.Line);
    Console.WriteLine("{0} files found.", files.Count().ToString());
    catch (UnauthorizedAccessException UAEx)
    Console.WriteLine(UAEx.Message);
    catch (PathTooLongException PathEx)
    Console.WriteLine(PathEx.Message);
    https://msdn.microsoft.com/en-us/library/dd997370%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    Fouad Roumieh

Maybe you are looking for

  • Can I update my iphone 4 to the iphone 4S software ?

    Hi I have an iphone 4 and it has been playing up a bit . It works fine , by this I mean you can use it to make calls text and all the rest , however when I try upload any new music from itunes on to the iphone it will not work at all . I have tried o

  • Help printing documents to PDF

    Adobe Acrobat 6.0 Pro deleted...no CD have serial Number..

  • Need help moving photoshop files with layers

    I have been having some trouble, when I attempt to move photoshop files with a CD-R disk, from my school pc to my home mac, only the top most image is moved. The layers are deleted, and I only receive the image on the background layer. I need the lay

  • Program not Responding after installing PSE8

    I recently upgraded to PSE8. Since then I have noticed that when I go to shutdown my system (XP w/ SP3) I get a window indicating a program is not responding. The title of the window is 'End Program - 9c0'. The '9c0' part is not always the same. Last

  • Is anyone else's cover flow is lagging in ios5?

    Please help! after upgrading my ipod touch 4gen to ios5 cover flow is really buggy and slow! any fixes?