vickerps Posted March 8, 2010 Posted March 8, 2010 Hi Can anyone tell me how to perform a search for a particular file type. What i want to do is create a list of all *.gho file that exist on a drive.
vickerps Posted March 8, 2010 Author Posted March 8, 2010 Sorry forgot to mention that I can do this by using a simple windows prompt command: dir /s *.gho >c:\results.txt This work great and does exactly what I want (However the it list the info it to complex). All i want is a simple list that like: c:\example1.gho c:\example2.gho c:\subfolder1\example3.gho c:\subfolder2\example4.gho
99ojo Posted March 8, 2010 Posted March 8, 2010 Hi, perform search function of forum with: file recursive type There are loads of examples you can start coding with. If you have further problems, come back. ;-)) Stefan
FaT3oYCG Posted March 8, 2010 Posted March 8, 2010 (edited) I have personally posted some information that would help to solve this problem on a previous occasion, if you search through my posts im sure you could find the thread. EDIT: This thread: http://www.autoitscript.com/forum/index.php?showtopic=86695&st=0&p=621662&hl=lua%20recursive&fromsearch=1&#entry621662 Edited March 8, 2010 by FaT3oYCG Interpreters have great power!Although they live in the shadow of compiled programming languages an interpreter can do anything that a compiled language can do, you just have to code it right.
Xenobiologist Posted March 8, 2010 Posted March 8, 2010 The normal dir command in DOS could also help you. Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
zodiac Posted March 16, 2010 Posted March 16, 2010 On 3/8/2010 at 11:27 AM, 'vickerps said: Sorry forgot to mention that I can do this by using a simple windows prompt command:dir /s *.gho >c:\results.txtThis work great and does exactly what I want (However the it list the info it to complex).All i want is a simple list that like:c:\example1.ghoc:\example2.ghoc:\subfolder1\example3.ghoc:\subfolder2\example4.ghodir c:\*.gho /s /b > c:\results.txtThis does exactly what you want.Cheers,
Yashied Posted March 16, 2010 Posted March 16, 2010 #Include <File.au3> _FindFiles('C:', '*.gho') Func _FindFiles($sRoot, $sFile) Local $FileList $FileList = _FileListToArray($sRoot, $sFile, 1) If Not @error Then For $i = 1 To $FileList[0] ConsoleWrite($sRoot & '\' & $FileList[$i] & @CR) Next EndIf $FileList = _FileListToArray($sRoot, '*', 2) If Not @error Then For $i = 1 To $FileList[0] _FindFiles($sRoot & '\' & $FileList[$i], $sFile) Next EndIf EndFunc ;==>_FindFiles My UDFs: Reveal hidden contents iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
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