0

I want to know if there is a way to read the name of sub-folders and files of given path recursively in assembly x86

ahmed elbagoury
  • 315
  • 5
  • 13
  • 3
    What Operating System? Or in case you want to run without an operating system: What File System? – Michael Stum Nov 06 '10 at 22:43
  • 4
    "folders" and "subfiles" are not defined in x86 assembly. They are instead, parts of various operating system APIs/ABIs such as DOS, Win32, Unix, and so forth. In each of these, one can of course access the APIs using assembly language. – wnoise Nov 06 '10 at 22:44
  • I am using windows How can i use windows API to do that – ahmed elbagoury Nov 06 '10 at 23:03

1 Answers1

2

You'll need to call FindFirstFile() (or FindFirstFileEx()), FindNextFile() (or FindNextFileEx()) and FindClose().

Generic examples of how to call the Windows API in assembler can be found elsewhere on stackoverflow.

Community
  • 1
  • 1
Chris J
  • 30,688
  • 6
  • 69
  • 111