kevinward13 Posted November 23, 2010 Share Posted November 23, 2010 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 More sharing options...
PsaltyDS Posted November 23, 2010 Share Posted November 23, 2010 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. 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 More sharing options...
kevinward13 Posted November 26, 2010 Author Share Posted November 26, 2010 I did, but nothing that I can decipher 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 More sharing options...
Moderators Melba23 Posted November 26, 2010 Moderators Share Posted November 26, 2010 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. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now