Sign in to follow this  
Followers 0
tempman

Search through all files and folders in directory

4 posts in this topic

Hi,

To make things simpler, I adjust my script

#include <File.au3>
#Include <Array.au3>
$DIR = (@MyDocumentsDir)
DirCreate(@UserName)
$SAVE_DIR = _PathFull(@UserName)
$FILES = FileFindFirstFile($DIR & "\*.DOC")
If $FILES = 0 Then
    Exit
Else
For $INDEX = 1 To $FILES[0]
    $SOURCE = $DIR & "\" & $FILES[$INDEX]
    If FileGetSize($SOURCE) < 50000 Then
        FileCopy($SOURCE,$SAVE_DIR)
    EndIf
Next
EndIf

Now instead to search only @MyDocumentsDir, I nead to search through all files and folders in directory.

It has to do with

While 1

FileFindNextFile()

FileClose()

But not for shure how...

Share this post


Link to post
Share on other sites



... but might be a little overly complex...

You are rigth for that, no nead for GUI in my sample script.

I lost me there :)

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  
Followers 0