News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

My attempt at directory recursion.

Started by Ehtyar, October 03, 2006, 10:46:32 AM

Previous topic - Next topic

PBrennick

Hutch,
Sounds like that delete program was well written!  Did you RE your executable?  :P

Paul
The GeneSys Project is available from:
The Repository or My crappy website

Ehtyar

Hey all. New post at http://www.masm32.com/board/index.php?topic=5858 for the SFV Generator. The first beta is posted.

Regards, Ehtyar.

Ehtyar

Drizz, it seems that your program does not return file names when specifying *.* as the file mask, just returns dir changes. Any thoughts?

ninjarider

what functions are you'll using for directory recursion

drizz

Quote from: Ehtyar on October 07, 2006, 01:46:32 AM
Drizz, it seems that your program does not return file names when specifying *.* as the file mask, just returns dir changes. Any thoughts?
patch :)
Quote from: FileSearch.Inc

98 invoke StrCmpi,sExt2,sExt1
99 mov edx,sExt1
100 .if !eax || word ptr [edx] == '*'


17 .if eax
18 .repeat
19 .break .if byte ptr [edx-1] == cl
20 dec edx
21 dec eax
22 .until zero?
23 invoke StrCpy,pOutBuff,edx
24 .endif

The truth cannot be learned ... it can only be recognized.

Ehtyar

Works beautifully, expect to see a better version of the SFV checker very soon :)

Shantanu Gadgil

Hi Ehtyar,
Did you try the "non-chdir" method for recursion?

Regards,
Shantanu
To ret is human, to jmp divine!

Ehtyar

I tried each method. Each crashed until drizz fixed his version. Now for some reason, although it works in his executable, it crashes in mine, still working on it :(

lingo

My faster proc will find recursively all files on disk c:\  :lol
When you start exe file wait and measure the time until the
exe failed
Press debug and next press two times F10 to load ecx and eax registers

ecx is all files on your disk c:\
eax is all subdirectories on your disk c:\

For example:
I have
eax=3E71h subdirs
ecx=28104h files on my disk c:\
and I need 2mins 15seconds about that

Regards,
Lingo

[attachment deleted by admin]