Windows 8 and 8.1 Forums


how can I find files w/same first 10 characters in name?

  1. #11


    Hafnarfjrur IS
    Posts : 4,376
    Linux Centos 7, W8.1, W7, W2K3 Server W10


    Hi there
    another or less conventional way -- extract the directories to EXCEL - then just search with a filter.


    How to copy folder names into an Excel spreadsheet - Microsoft Community

    If you don't have EXCEL then download any "Excel clone" -- loads around

    Cheers
    jimbo

      My System SpecsSystem Spec

  2. #12


    Posts : 2,130
    Windows 8.0 x64


    I think the OP's issue is about permutations. If I get it, the desire is "permute every file in folder tree storing names. Compare the first 10 characters of every file in the list with the rest. Any matches are displayed for user action." So it's non-trivial. Sounds like something that should be done in Lisp or some other list intensive language.
      My System SpecsSystem Spec

  3. #13


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    I used to use Lisp in Autocad to create Objects I could dump into new projects, but that was years ago and on Dos 5 or something.

    Lisp would be the best thing to use, actually, I found this version which has a Windows Installer:

    CLISP - an ANSI Common Lisp Implementation

    But you would still need to be able to read Directory Trees and sort out names and filesizes. You could use the Tree command to show

    Thanx for jumping in guys, I new Programming would come into it sooner or later. There are bunches of people trying to find a solution to this exact issue, you'll find their posts all over the net. I've stumbled across them now and then over the years.

    It seems to me, you can use the TREE command, to find locations of these files, open a command prompt on the Drive with the Media and run

    (Media Drive):>Tree>tree.txt

    and it will shunt the results to a txt file, and you can then use the Search within Notepad to locate what you are looking for.
      My System SpecsSystem Spec

  4. #14


    Posts : 2,130
    Windows 8.0 x64


    If I read the first post correctly the OP is talking 2 to 3 thousand folders with about 20 files in each. I'll leave it to the math wizards to figure out the combinations but I think it precludes any manual solution. At least until the final stage, assuming there's only a few matches that require manual disposition.
      My System SpecsSystem Spec

  5. #15


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    Ok, here's what I mean.

    You have to open an Admin Command Prompt.

    type your drive letter like so: m: and hit enter, then CD (folder name wherre the files are stored), or, leave it on the Drive if it's the whole drive.

    Then type M:>Tree>C:\TreeM.txt

    And then M:>Notepad C:\TreeM.txt

    Change the FONT to Terminal, else it will be nonsense characters.

    This is what you'll see:

    Click image for larger version

    After that, you can either use the pretty adequate Search command in Notepad, or import it into Excel as Jimboy suggested.
      My System SpecsSystem Spec

  6. #16


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    Quote Originally Posted by MilesAhead View Post
    If I read the first post correctly the OP is talking 2 to 3 thousand folders with about 20 files in each. I'll leave it to the math wizards to figure out the combinations but I think it precludes any manual solution. At least until the final stage, assuming there's only a few matches that require manual disposition.
    Miles, if he shunted the output of a Tree command to a file, he could open that file in some other program that has advanced search capabilities. Even if it had thousands of subfolders. But at least in Notepad, it would scroll to where the entry is, and he could SEE where it is located.

    Unfortunately, the Notepad Doc would be incredibly huge, like a couple MB.

    Actually, my Tree command line was wrong, it would have to be "Tree /F>(filename)

    Then, the full file names with extention will be listed
      My System SpecsSystem Spec

  7. #17


    Posts : 2,130
    Windows 8.0 x64


    I see what you are getting at now. EditPadLite should be able to do it. It has a sort command which would sort alpha starting with the first column. That would group the matches. Also it allows you to set font to a monospaced for alignment.

    edit: in fact the automation could be carried further even by a novice programmer. Once you have the list of filenames you can use AutoIt scripting language. _FileReadToArray() reads a whole text file into an array in one shot. _ArraySort() sorts it. I posted modified code that allows a comparison function to be passed in similar to how it's done in C++ QSort. That way you could keep the entire file path in the string. Just start the compare after the last backslash and compare only the first ten characters of the filename part of the path etc..

    But if it;s a one shot the editor method is simpler.
      My System SpecsSystem Spec

  8. #18


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    Maybe they can use UltraEdit as well, its pretty powerful, I used to use that to open EXE files and mess around with them.
      My System SpecsSystem Spec

  9. #19


    Posts : 2,130
    Windows 8.0 x64


    EditPadLite is free and can handle it. There are programmable editors such as Emacs which coincidentally uses lisp. I got in the habit of using free editors. But there are plenty of deluxe editors around. Some programmers spend almost as much time programming their editors as writing code in them. Vim is a very powerful free editor based on vi. I used vi in Linux just enough to start to understand it. That scared me so much I ran back to Windows.
      My System SpecsSystem Spec

  10. #20


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    UUedit has a free version, thats pretty much all I used.
      My System SpecsSystem Spec

Page 2 of 3 FirstFirst 123 LastLast
how can I find files w/same first 10 characters in name?
Related Threads
I still can't figure out this Windows 8 search function ... I have a bunch of text files and I need to search for the following string for example within the files: now() Can anyone tell me what I need to do to search for this string? It seems like Windows 8 ignores just about all...
Windows 8.1 64b Some files, when open with notepad, can be easily read in English. For other ones, I get characters like the ones bellow. How could I read these characters, is there any online translator for this? or I should learn basic C++ or other means? Many thanks <J#wH=WM...
This is my first time on the forum. I have been using a PC for over ten years and, at best, I am still a novice! I am experiencing a lot of issues I had overcome with Win7. I will address thes one at a time. In the past when I was looking for a folder or file I pressed START and keyed in what...
I'm trying to download some DLLs to use for my Paint Shop Pro program and I need to put them in my System 32 files, and I can't find System 32. I new at working with this Win 8 so please be gentle with me. I received the 2 dlls in a zip folder. I opened them and saved in a folder in Documents. I...
Hi everyone, im new here and in need of help. I recently purchased a new laptop (Windows 8), we put the hard disk from my old slow laptop (win XP) that stopped working into a "sata enclosure". When I attached it, I cant find my personal files. Its like the space is taken up but my important...
Hi my dad upgraded from windows 7 to 8 a few months ago and selected to keep his old files (i.e. pictures, vids, so on) now we cant find his old files. I have gone to the windows.old file and there are files there but they all say that they are empty. everything else seems to be fine but we cant...
Where do I find app .exe files? in Software and Apps
I have a Logitech keyboard with shortcuts. I wanted to link the search button to the Google Search app via the Logitech Setpoint software. Normal I can assign programs to keys by navigating to its exe file. Does such a thing exist for apps from the store?
Eight Forums Android App Eight Forums IOS App Follow us on Facebook