Jump to content
Sign in to follow this  

How to search after a .doc type file in a folder?

Recommended Posts

$search = FileFindFirstFile("J:\Dokumenter\"&"*.doc")

As you maybe can see I wanna to search for .doc files only in J:\Dokumenter. But it wont work :whistle:.

How do I do that?

Thank you ;)

Edited by Mr. Zero

Share this post

Link to post
Share on other sites


_FileListTo Array()

in help



I have tryed, follow the help file,:

#Include <File.au3>
#Include <Array.au3>
If (Not IsArray($FileList)) and (@Error=1) Then
    MsgBox (0,"","No Files\Folders Found.")

And the help file says;

lists files and\or folders in a specified path (Similar to using Dir with the /B Switch)

#include <File.au3>

_FileListToArray($sPath [, $sFilter [, $iFlag]])


$sPath Path to generate filelist for.

$sFilter Optional the filter to use, default is *. Search the Autoit3 helpfile for the word "WildCards" For details.

$iFlag Optional: specifies wheather to return files folders or both

$iFlag=0(Default) Return both files and folders

$iFlag=1 Return files only

$iFlag=2 Return Folders only

Thanks :whistle:

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...