Jump to content
Sign in to follow this  
madflame991

How do I choose the directory where to preform a search?

Recommended Posts

madflame991

Share this post


Link to post
Share on other sites
Andreik

FileSelectFolder()


When the words fail... music speaks

Share this post


Link to post
Share on other sites
madflame991

Share this post


Link to post
Share on other sites
Andreik

tried that, it only returns the selected folder

thx anyway (mersi, acum m-am uitat la tara)

Explica-mi te rog un pic mai bine ce vrei sa faci, sa te pot ajuta mai mult. ;)


When the words fail... music speaks

Share this post


Link to post
Share on other sites
madflame991

Explica-mi te rog un pic mai bine ce vrei sa faci, sa te pot ajuta mai mult. ;)

Vreau sa modific automat multe file... si sa pot sa imi selectez folderu de unde sa mi le listeze FileFindFirstFile/ FileFindNextFile

filele dorite

Ma descurc in Autoit, nu's nou, dar asta chiar imi scapa si presupun ca are de-a face cu vreuna din macrourile @workingdir sau ceva de genu

Share this post


Link to post
Share on other sites
Andreik

Vreau sa modific automat multe file... si sa pot sa imi selectez folderu de unde sa mi le listeze FileFindFirstFile/ FileFindNextFile

filele dorite

Ma descurc in Autoit, nu's nou, dar asta chiar imi scapa si presupun ca are de-a face cu vreuna din macrourile @workingdir sau ceva de genu

$DIR = FileSelectFolder("Select","")

$search = FileFindFirstFile($DIR & "\*.*")  
If $search = -1 Then
    MsgBox(0, "Error", "No files/directories matched the search pattern")
    Exit
EndIf

While 1
    $file = FileFindNextFile($search) 
    If @error Then ExitLoop
    
    MsgBox(4096, "File:", $file)
WEnd

FileClose($search)

When the words fail... music speaks

Share this post


Link to post
Share on other sites
madflame991
Andreik

Am gasit ;) FileChangeDir('e:\') schimba @workingdir

Mersi, sunt curios daca mai sunt multi dev romani in autoit...

Am vazut cativa useri din Romania pe forum.

PS: Pune un solved la titlu sa stie ca ai gasit solutia, ca am vorbit alta limba.

Edited by Andreik

When the words fail... music speaks

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.