Jump to content

Lets do a seach


Recommended Posts

Yo peeps! Love the site and have been tinkering with scripting for about 2 weeks! Fun stuff.

However I am stuck and need help.

Here is what I am looking for...

I need to be able to search our file server here for specific file types. IE: MP3s, JPG, JPEGs, so on and so on

I would like to do it in this method..

Give the script a "ROOT" directory to start with. Lets say \\server1\users_home\

then from this location it will search all sub-folders inside one by one and display the results after each folder is completed.

something along the lines of this

\\server1\users_home\user1
            \\server1\users_home\user1\folder
            \\server1\users_home\user1\folder2
\\server1\users_home\user2
\\server1\users_home\user3

So the script will take the "Root" directory (\\server1\users_home\) and search user1 and all files and folders inside and display as a result when done

then on the mouse clicky or next button clicky move to the user2 and do the same.

More specifically what I am looking to do, is display the results of the *.jpg or any image files as a thumbnail so i can determine if it is work related or not.

I have tried this with windows Search but, there are sooooo many users and soooooooooooooooooooooooooooo many pictures, i cant cache enough thumbnails.

And I think that is it. If i have more i will edit the post!

thanks in advanced!

Link to comment
Share on other sites

Try using the forum search on "recursive search". There are no single native functions for a recursive search, but the topic is thoroughly covered on the forum with many examples.

:graduated:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

I did, but nothing that I can decipher :graduated:

However i did poke and prod and finger this part out.

It does give me the folder list of the "Root" location.

Now i need to either 1, read each line and search from the txt file created. or do it from the array.

$ServerSave = ("\\SERVER\PICs\Folder_List.txt")
$ServerSearch = ("\\SERVER\home\")
Global $temppath = $ServerSearch

$FileList=_FileListToArray($ServerSearch)
$File = ($ServerSave)


If @Error=1 Then
    MsgBox (0,"","No Folders Found.")
    Exit
EndIf
If @Error=4 Then
    MsgBox (0,"","No Files Found.")
    Exit
EndIf
    
_FileWriteFromArray($File,$FileList,1)

_ArrayDisplay($FileList,"User Profiles for Server HOME")
Link to comment
Share on other sites

  • Moderators

kevinward13,

You need to refine your search skills! :(

Here is one of my recursive search scripts set up as a UDF - it will do what you want, but please read the header carefully so you use the correct parameters. :graduated:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...